?
Solved

Problems using anchors with cflocation.

Posted on 2003-03-07
4
Medium Priority
?
714 Views
Last Modified: 2013-12-24
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?


0
Comment
Question by:benjamintr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 2

Expert Comment

by:fmedia
ID: 8091046
I really don't know if this is correct but just try it :

<cflocation url="#UrlSessionFormat("profile.cfm")###lifestyle">
0
 
LVL 8

Accepted Solution

by:
TallerMike earned 500 total points
ID: 8091193
Yes, what you'll need to do is to set the AddToken attribute to the CFLOCATION tag to be false, and then ass the CFID, CFOTKEN and JSESSIONID variables by hand. Something (but not exactly) like so:

<cflocation url="profile.cfm?CFIDE=#Client.CFID#&CFTOKEN=#Client.CFTOKEN#&jsessionid=#Client.jsessionid###lifestyle" addToken="False">
0
 

Author Comment

by:benjamintr
ID: 8091537
TallerMike,

The documentation says that jsessionid is referred to as Session.jsessionid, but the general idea was right.

thanks!
0
 
LVL 8

Expert Comment

by:TallerMike
ID: 8097763
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.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question