Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,982
    Thanks
    120
    Thanked 76 Times in 76 Posts

    help with escape

    this works fine:

    Code:
    <input type="button" onclick="eval(Test.test1('dddddd', new Array('a','b','c')))" />
    but, I m expecting this to go into excepttion and I wouldn't like to put a bunch of code into, like:
    Code:
    <input type="button" onclick="Try ... " />
    so how to put escape characters into this to work ?
    Code:
    <input type="button" onclick="goAndEvalString('Test.test1('dddddd', new Array('a','b','c')))" />
    
    ...
    
    function goAndEvalString (string)
    {
      try
        eval(string);
     ...
    }

  • #2
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,982
    Thanks
    120
    Thanked 76 Times in 76 Posts
    here is teh linkto test page: button2
    http://86.61.66.17:8084/AgroZoo/testHTML/testHTML.html

  • #3
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,982
    Thanks
    120
    Thanked 76 Times in 76 Posts
    found answer myself. no escapes (-:

    Code:
    <input value="button2" type="button" onclick="doit(Test.test1('dddddd', new Array('a','b','c')))" />


  •  

    Posting Permissions

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