:-)

-----Original Message-----
From: Rich Wild [mailto:[EMAIL PROTECTED]
Sent: 01 October 2003 15:08
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] OT : Links


lol. that JS looks familiar to me!

> -----Original Message-----
> From: Robertson-Ravo, Neil (RX) 
> [mailto:[EMAIL PROTECTED] 
> Sent: 01 October 2003 14:59
> To: '[EMAIL PROTECTED]'
> Subject: [ cf-dev ] OT : Links
> 
> 
> I have a block of JS which appends CFID/CFTOKEN to any link 
> in a page, however, if one of those links as an anchor in it, 
> it simply ignores the link and doesnt append the cfid/cftoken....
> 
> What I need it to is, append the cfif/cftoken AND the anchor 
> reference, but with the anchor reference at the end of the string! 
> 
> anyone?
> 
> 
>       <script language="Javascript">
>                       
>                       function setLinks() {
>                                var thisLink = "";
>                                var urltoken =
> "&cfid=#cfid#&cftoken=#cftoken#";
>                               
>                 for (var i=0; i<document.links.length; i++) {
>                 thisLink = document.links[i];
>                               //if 
> ((thisLink.href.indexOf('mailto:') ==
> -1) && (thisLink.href.indexOf('javascript:') == -1) &&
> (thisLink.target.toLowerCase() != '_blank')) {
>                               if
> ((thisLink.href.toLowerCase().indexOf('appname') > -1) &&
> (thisLink.href.toLowerCase().indexOf('javascript:') == -1) &&
> (thisLink.href.toLowerCase().indexOf('##') == -1)) {
>                          //if 
> (thisLink.href.indexOf('homepage.cfm') != -1) {
>                                  thisLink.href += urltoken;
>                           //}
>                  }
>                }
>                                       
>               }
>               </script>       
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] For human help, e-mail: 
> [EMAIL PROTECTED]
> 


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to