Hmm. Isn't HTTP_REFERER actually the request for the previous page? If  
page A is requested with

        http://somehost.com/pageA.cfm?param1=foo#barA

and has a link to

        http://somehost.com/pageB.cfm?param1=foo#barB

when pageB.cfm executes, won't the HTTP_REFERER be

        http://somehost.com/pageA.cfm?param1=foo#barA

as pageA.cfm's URL produced the HTML with the link to pageB?

For some reason unknown to me, IE and Mozilla are reading the fragment  
ID on the original link and applying it to the page they are redirected  
to via cflocation. Safari and Opera don't exhibit this behavior however.

Any more ideas?

On Tuesday, Jun 17, 2003, at 11:18 US/Eastern, Dave Wilson wrote:

>> On Tuesday, Jun 17, 2003, at 10:50 US/Eastern, Adrian Lynch wrote:
>>
>>> ListLast("http://somehost.com/pagename.cfm?param1=foo#bar";, "##")
>>>
>>> Not sure if there's a CGI var for this.
>>
>> Sorry, I should have been more clear. I'd like to be able to
>> detect the
>> fragment ID within the requested page. The page receiving the request
>> is acting as a dispatcher and I need to be able to read the
>> fragment ID
>> from the incoming URL as it were and then pass it along to
>> the eventual
>> CFLOCATION call.
>
> (for your example)
> ListLast("#cgi.http_referer#", "##")
>
> (if you want the full query string)
> ListLast("#cgi.http_referer#", "?")
>
> HTH,
> Dave
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to