I think it's because the # doesn't do anything server side.

You can definitely get it with Javascript. It works like so:

Assuming this link:
/test.cfm#anchor

This code:
<script type="text/javascript">
<!--
        alert(location.hash);
//-->
</script>

Outputs this:
#anchor

You could then pass that off to CF via AJAX if you needed to.



andy 

-----Original Message-----
From: Robert Harrison [mailto:[email protected]] 
Sent: Thursday, September 02, 2010 11:55 AM
To: cf-talk
Subject: Is there an anchor in a URL String


I need to know if there is an anchor in a URL string (e.g.,
http://mylink.cfm#thisanchor).

Doing a CF dump and listing of every cgi var I know of does not give me that
information. 

Is there any way I can tell if a URL contains an anchor?

Thanks

Robert B. Harrison



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336774
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to