Hi, I just did a quick test and notice the anchor parameter isn't available to CF at all, which suggests to me that it is clientside.
How about using a document.location call with javascript instead of cflocation? This should let you use location.hash (sorry my javascript is terrible). HTH, Dave > -----Original Message----- > From: Howard Fore [mailto:[EMAIL PROTECTED] > Sent: 17 June 2003 17:03 > To: CF-Talk > Subject: Re: Accessing fragment ID from URL? > > > 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 Host with the leader in ColdFusion hosting. Voted #1 ColdFusion host by CF Developers. Offering shared and dedicated hosting options. www.cfxhosting.com/default.cfm?redirect=10481 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4