Can I use cflocation to take a user to a specific part of a page...as you would with a same-page link?
I have a dynamic id (cmtid) generated, then use that dynamic id in the cflocation url to take the user to a specific comment on the page.
<cfset pid = 3>
<cfset cmtid = 7>
<cflocation url="thepage.cfm?pid=#pid###cmtid-#cmtid#">
Then on thepage.cfm ...
<a id="cmt-7"></a>
<p>this is where I want the user to be directed</p>
That's basically what I'm trying to accomplish but it's not working. I think I'm creating the cflocation url incorrectly.
Any ideas?
I have a dynamic id (cmtid) generated, then use that dynamic id in the cflocation url to take the user to a specific comment on the page.
<cfset pid = 3>
<cfset cmtid = 7>
<cflocation url="thepage.cfm?pid=#pid###cmtid-#cmtid#">
Then on thepage.cfm ...
<a id="cmt-7"></a>
<p>this is where I want the user to be directed</p>
That's basically what I'm trying to accomplish but it's not working. I think I'm creating the cflocation url incorrectly.
Any ideas?