Driving me nuts!

Results 1 to 3 of 3

Thread: Driving me nuts!

  1. #1
    Join Date
    Dec 1969

    Default Driving me nuts!

    Hi guys<BR><BR>I have a linked JSpage.js and this works:<BR><BR>function DoThis()<BR>{<BR>window.document.getElementById(&# 039;link1&#039;).className=&#039;BarLocation&#039; <BR>}<BR><BR>When I try to send a variable it doesn&#039;t:<BR><BR>function DoThis(test)<BR>{<BR>var link1 = eval(test)<BR>window.document.getElementById(link1 ).className=&#039;BarLocation&#039;<BR>}<BR><BR>Wh at am I doing wrong?<BR><BR>Thanks

  2. #2
    Join Date
    Dec 1969

    Default RE: Driving me nuts!

    Why are you trying to eval() the parameter? What are you passing?<BR><BR>Craig.

  3. #3
    Join Date
    Dec 1969

    Default Agree with Craig...

    Show how you *invoke* the function. Hard to believe there is any point in your eval() call.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts