RE: Page Anchors
RE: Page Anchors
- Subject: RE: Page Anchors
- From: "Fournier, Pete" <email@hidden>
- Date: Mon, 5 Jan 2004 17:33:06 -0500
- Thread-topic: Page Anchors
I need to get the anchor ref because I am redirecting the request
between multiple load balanced sites when it comes in as www and turning
it into ww1 or ww2 and redirecting. Www can resolve to the two different
VIP addresses, ww1 and ww2 each only resolve to their respective VIP
address. This tags the user to one site or the other to keep session
information available since it will not be available at the other data
center. I use a session cookie in case the request comes in www again
for some reason and I redirect back to the specific ww1 or ww2 that was
originally hit.
It's a small problem, but anchors do not seem to cooperate since the
browser does not seem to send them along.
It is only a temporary solution since we will be implementing a pair of
hardware devices that do global load balancing soon, but the current
solution has a new found hole and I am trying to fix it.
Thanks,
Peter Fournier
aaa.com
Technical Specialist
email@hidden
(407) 444-7361
-----Original Message-----
From: Jonathan Rochkind [mailto:email@hidden]
Sent: Monday, January 05, 2004 4:30 PM
To: Fournier, Pete; email@hidden
Subject: Re: Page Anchors
Anchor references are actually not a part of the URL. By which I
mean, they are for use only by the browser. When you click on a URL
in the browser, the browser takes note of the anchor reference, but
the browser does NOT send the anchor reference to the server. It
only takes note of it, so it can jump to that anchor in the returned
page. The theory is that the server doesn't need to know the anchor
reference, it's got nothing to do with what content is returned from
the request, it's only got to do with what the browser does with that
content (jumps to a certain point on the page).
So, if all that makes sense... there's no way to get this
information, and it's not a WO issue, the same would be true of any
server application at all. The anchor information is not sent to the
server.
--Jonathan
At 3:53 PM -0500 1/5/04, Fournier, Pete wrote:
>Even though the docs for WORequest state that everything aflter the
>questionmark in a URL can be obtained by calling WORequest's
>queryString() I am not getting back anchor references.
>
>For an URL like this:
>
>http://somedomain/scripts/WebObjects.dll/MyApplication?this=that&some=w
>h
>at#PageAnchor1
>
>queryString() is only returning the this=that&some=what portion and
>leaving off the #PageAnchor1 portion.
>
>Any ideas on how to get the anchor reference?
>
>Peter Fournier
>
>
>
>----------------
>
>This communication (including all attachments) is intended solely for
>the use of the person(s) to whom it is addressed and should be treated
>as a confidential AAA communication. If you are not the intended
>recipient, any use, distribution, printing, or copying of this email is
>strictly prohibited. If you received this email in error, please
>immediately delete it from your system and notify the originator. Your
>cooperation is appreciated.
>_______________________________________________
>webobjects-dev mailing list | email@hidden
>Help/Unsubscribe/Archives:
>http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.