benjamintr
asked on
Problems using anchors with cflocation.
I'm trying to use a cflocation tag to point the user to an anchor on another page.
I'm using the cflocation tag like so.
<cflocation url="profile.cfm##lifestyl e">
(Lifestyle is the name of the anchor. Double pounds signs are needed in this tag so as not to confuse CF and correctly generates only one pound sign.)
However, when it actually outputs to the page I end up with this:
http://localhost/account/profile.cfm#lifestyle?CFID=3601&CFTOKEN=58215768&jsessionid=80302915791047067767540
This doesn't work in IE6.
I've done a little testing and this works fine:
http://localhost/account/profile.cfm#lifestyle
This also works fine:
http://localhost/account/profile.cfm?CFID=3601&CFTOKEN=58215768&jsessionid=80302915791047067767540#lifestyle
Is there some way to get cflocation to put my anchor at the end of the string after all the CFID & CFTOKEN info? Is there another way to do this?
I'm using the cflocation tag like so.
<cflocation url="profile.cfm##lifestyl
(Lifestyle is the name of the anchor. Double pounds signs are needed in this tag so as not to confuse CF and correctly generates only one pound sign.)
However, when it actually outputs to the page I end up with this:
http://localhost/account/profile.cfm#lifestyle?CFID=3601&CFTOKEN=58215768&jsessionid=80302915791047067767540
This doesn't work in IE6.
I've done a little testing and this works fine:
http://localhost/account/profile.cfm#lifestyle
This also works fine:
http://localhost/account/profile.cfm?CFID=3601&CFTOKEN=58215768&jsessionid=80302915791047067767540#lifestyle
Is there some way to get cflocation to put my anchor at the end of the string after all the CFID & CFTOKEN info? Is there another way to do this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
TallerMike,
The documentation says that jsessionid is referred to as Session.jsessionid, but the general idea was right.
thanks!
The documentation says that jsessionid is referred to as Session.jsessionid, but the general idea was right.
thanks!
I wasn't so sure where the JSessionID came from, so I just guessed. I should have noted that, but I'm glad you figured it out.
<cflocation url="#UrlSessionFormat("pr