BubikolRamios
11-05-2006, 09: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);
...
}
<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);
...
}