...

View Full Version : Can't perform eval or execScript in IE8



jluka
04-14-2011, 01:03 AM
I am doing an XMLHTTP request in IE8. The eval() command didn't work there so I went with execScript, and it is getting to execScript with the code inside the variable, (I checked this with alert statements) but then it just skips over it.

function processStateChange(){
if (req.readyState == 4) {
str = req.responseText + "ProcessInfoNext();";
if (window.execScript) {
execScript(str, "JavaScript");
} else {
if (window.eval) {
eval(str);
}
}
}
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum