What is wrong in this code? it shows an Syntax error in eval(e.text); //run the script
runScripts1: function(e) {
if (e.nodeType != 1) return false; //if it's not an element node, return
if (e.tagName.toLowerCase() == 'script') {
eval(e.text); //run the script
}
else {
var n = e.firstChild;
while ( n ) {
if ( n.nodeType == 1 ) forrester.runScripts1(n); //if it's an element node, recurse
n = n.nextSibling;
}
}
return true;
},
Thanks
e.text? Either debug the code or show it with alert orConsole.writeand post here.