there's a document.anchor property available in Javascript which might be
useful to you.


Duncan Cumming
IT Manager

http://www.alienationdesign.co.uk
mailto:[EMAIL PROTECTED]
Tel: 0141 575 9700
Fax: 0141 575 9600

Creative solutions in a technical world

----------------------------------------------------------------------
Get your domain names online from:
http://www.alienationdomains.co.uk
Reseller options available!
----------------------------------------------------------------------
----------------------------------------------------------------------


                                                                                       
                                           
                    "Robertson-Ravo, Neil (RX)"                                        
                                           
                    <[EMAIL PROTECTED]        To:     "'[EMAIL PROTECTED]'" <[EMAIL 
PROTECTED]>     
                    dexpo.com>                          cc:                            
                                           
                                                        Subject:     [ cf-dev ] OT : 
Links                                        
                    01/10/2003 14:59                                                   
                                           
                    Please respond to dev                                              
                                           
                                                                                       
                                           
                                                                                       
                                           



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]

Reply via email to