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]

Reply via email to