...

View Full Version : catch exception from eval function ?



BubikolRamios
11-05-2006, 06:16 PM
How can I achive that program would go to: alert('eval err catched');
in case that function contained in 'a' does not exist ? It does not go
there at the moment. Thanks for help.

the link to test page:
http://86.61.66.17:8084/AgroZoo/testHTML/testHTML.html

click button2.




function doit(a)
{
try
{
eval(a);
}
catch(err)
{
alert('eval err catched');
}
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum