...

View Full Version : help with escape



BubikolRamios
11-05-2006, 10:58 AM
this works fine:



<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:


<input type="button" onclick="Try ... " />


so how to put escape characters into this to work ?


<input type="button" onclick="goAndEvalString('Test.test1('dddddd', new Array('a','b','c')))" />

...

function goAndEvalString (string)
{
try
eval(string);
...
}

BubikolRamios
11-05-2006, 05:31 PM
here is teh linkto test page: button2
http://86.61.66.17:8084/AgroZoo/testHTML/testHTML.html

BubikolRamios
11-05-2006, 05:48 PM
found answer myself. no escapes (-:



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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum