> Hi,

> How can I pass the results of the anchor based on which
> one is clicked on to another template? Do I need to use
> JS?


> <a name="test1" id="test1" href="template.cfm">test1</a>
> <a name="test2" id="test2" href="template.cfm">test2</a>
> <a name="test3" id="test3" href="template.cfm">test3</a>

If you're using url variables, you'll have to use JS because anchors and
query strings are mutually exlusive -- trying to use them both forces the
browser to interpret whichever is last as a part of the first.

<cfparam name="hash" type="string" default="">
<cfif len(trim(url.hash))>
<script language="javascript">
        function goToHash() {
                location.hash = '#jsstringformat(url.hash)#';
        } window.onload = goToHash;
</script></cfif>



Isaac
Certified Advanced ColdFusion 5 Developer

www.turnkey.to
954-776-0046

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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.

Reply via email to