If you just want to track clicks on a page with many inline anchors you can use the technique I've detailed here (it does require JavaScript be enabled):
http://ww.depressedpress.com/DepressedPress/Content/ColdFusion/Essays/GI FAsPipe/Index.cfm Otherwise you may need to repeat your client-side anchor in the URL scope if it's not coming through. Something like "page?Anchor=Section#Section Jim Davis President, http://www.depressedpress.com Webmaster, http://www.firstnight.org Webmaster, http://www.cfAdvocacy.org Senior Consultant, http://www.metlife.com > -----Original Message----- > From: Dave Wilson [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2003 12:12 PM > To: CF-Talk > Subject: RE: Accessing fragment ID from URL? > > 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 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