Link to home
Start Free TrialLog in
Avatar of benjamintr
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##lifestyle">

(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?


Avatar of fmedia
fmedia

I really don't know if this is correct but just try it :

<cflocation url="#UrlSessionFormat("profile.cfm")###lifestyle">
ASKER CERTIFIED SOLUTION
Avatar of TallerMike
TallerMike

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of benjamintr

ASKER

TallerMike,

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.