Here's a _javascript_ function I wrote for you so you can automatically
pop the URLToken on all links for a given host. It may do the trick for
you. Just include it on every page (works well as a footer include or
running on a body tag's onLoad event.)
<cfoutput>
<script>
AppendURLTokens('HOST NAME (I.e.) Domain Name Goes
Here','#URLToken#);
</script>
</cfoutput>
<script language="_javascript_">
function AppendURLTokens(host,urltoken) {
var linkRef;
for(i=0;i<document.links.length;i++) {
linkRef=document.links[i];
if(linkRef.host==host) {
if(linkRef.search=='') {
linkRef.href="">
}
else {
linkRef.href="">
}
}
}
}
</script>
-----Original Message-----
From: Howie Hamlin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 3:52 PM
To: CF-Talk
Subject: Re: CFID/CFTOKEN newbie question
I have client management enabled but I don't want to see the
CFID/CFTOKEN in the URL unless necessary. What's the best way of
testing whether the client supports cookies before adding the URLTOKEN
to every link?
Thanks,
Howie
----- Original Message -----
From: Ubqtous
To: CF-Talk
Sent: Tuesday, March 02, 2004 4:48 PM
Subject: Re: CFID/CFTOKEN newbie question
John,
On 3/2/2004 at 16:41, you wrote:
BJ> And you have the option to add the token in cflocations or you can
BJ> just append #urltoken# to the end of the link.
If client management is enabled in the application, the cflocation
attribute addtoken="yes" will append CFID/CFTOKEN automatically.
~ Ubqtous ~
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- CFID/CFTOKEN newbie question Howie Hamlin
- Re: CFID/CFTOKEN newbie question Jeff Garza
- RE: CFID/CFTOKEN newbie question Andrew Scott
- Re: CFID/CFTOKEN newbie question Jamie Jackson
- RE: CFID/CFTOKEN newbie question Burns, John
- Re: CFID/CFTOKEN newbie question Ubqtous
- Re: CFID/CFTOKEN newbie question Howie Hamlin
- RE: CFID/CFTOKEN newbie question Brendan Avery
- RE: CFID/CFTOKEN newbie question Brendan Avery
- Re: CFID/CFTOKEN newbie question Howie Hamlin
- Re: CFID/CFTOKEN newbie question Stephen Hait
- Re: CFID/CFTOKEN newbie question Ubqtous
- Re: CFID/CFTOKEN newbie question Stephen Hait
- RE: CFID/CFTOKEN newbie question Dave Watts
- RE: CFID/CFTOKEN newbie question Stephen Hait
- Re: CFID/CFTOKEN newbie question Matt Robertson
- Re: CFID/CFTOKEN newbie question Ben Doom
- Re: CFID/CFTOKEN newbie question Butch Zaccheo