Accessing bookmark?

R

rf

Robert Mark Bram

Er, G'day.
How do you get the bookmark on the end of a url with ASP?

I know nothing about asp except that is much like most other languages or
whatever that are in use. Most of them have some sort of "pull this string
apart from this character" function.

RTFM
The next question would be how can I add a bookmark in ASP too..

As per the above most "languages" have a string concatenation function.

Once again RTFM.

--
Cheers
Richard.

Bloody shit! crosposted groups snipped, not on my server. Why do I bother
with these arseholes?
 
S

SpaceGirl

Robert said:
Hi All!

How do you get the bookmark on the end of a url with ASP?

For example, this page from 4GuysFromRolla:
http://www.4guysfromrolla.com/demos/servervariables.asp#blobby

"blobby" doesn't pop up anywhere in Request.Variables..

The next question would be how can I add a bookmark in ASP too..

Rob
:)

Er... I think you misunderstand how bookmarks work. A .asp file is the
same as a .htm file as far as a browser is concerned. So, bookmarks work
exactly the same way as they do on any other HTML document.

--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
 
A

Andrew Urquhart

*Robert Mark Bram* said:
Hi All!

How do you get the bookmark on the end of a url with ASP?

For example, this page from 4GuysFromRolla:
http://www.4guysfromrolla.com/demos/servervariables.asp#blobby

"blobby" doesn't pop up anywhere in Request.Variables..

The next question would be how can I add a bookmark in ASP too..

Rob
:)

If the HTTP client submits the fragment identifier to the server, the
client is broken - at least that's my interpretation of RFC1630, page
13. ASP (or any other server-side language) is unable to retrieve the
anchor reference as it's not sent with the request to the server. Mind
you, it is a handy way to block dumb web crawlers that try to send it
anyway.
 
A

Andy Dingley

How do you get the bookmark on the end of a url with ASP?

For example, this page from 4GuysFromRolla:
http://www.4guysfromrolla.com/demos/servervariables.asp#blobby

"blobby" doesn't pop up anywhere in Request.Variables..

That's not a bookmark, it;'s a "fragment identifer".

In your ASP, get the whole URL and then slice the string up yourself.
Use a regex to look at characters after the hash.


_IF_ the user has navigated from an internal link on the page
http://www.4guysfromrolla.com/demos/servervariables.asp
to
http://www.4guysfromrolla.com/demos/servervariables.asp#blobby

then the browser probably won't re-load the page and the server never
gets to see this request.

If they'd arrived there from the page
http://www.4guysfromrolla.com/demos/foo.htm
then the server would see the full request.
 
A

Andrew Urquhart

*Andrew Urquhart* said:
If the HTTP client submits the fragment identifier to the server, the
client is broken - at least that's my interpretation of RFC1630, page
13. ASP (or any other server-side language) is unable to retrieve the
anchor reference as it's not sent with the request to the server. Mind
you, it is a handy way to block dumb web crawlers that try to send it
anyway.

I should qualify that I mean the URL of the requested server resource
doesn't contain the fragment identifier. The optional referrer header
doesn't have this limitation. Ignoring the aforementioned wording in the
RFC, this is at least the observed behaviour of a variety of browsers in
tandem with IIS5 and classic ASP.
 
R

relaxedrob

Hi Andrew,

Thank you for your reply - Andy and Miranda too!
If the HTTP client submits the fragment identifier to the server, the
client is broken - at least that's my interpretation of RFC1630, page
13. ASP (or any other server-side language) is unable to retrieve the
anchor reference as it's not sent with the request to the server. Mind
you, it is a handy way to block dumb web crawlers that try to send it
anyway.

This answers my question. Oh well. :) I will find a different way.
Thank you very much!

Rob
:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top