I have this code what handles calling javascript in div where is loaded my games content like character menu or battle. And firefox, google chrome and opera all works perfectly. But recently i encountered that in IE it for some strange reasons don't wanna work.
Her is javascript code.
// TO CONTAIN JAVASCRIPT
// Loop through the script tags contained within object and execute them
function execute_js(object) {
// As we have loaded the page we will want to execute any javascript we
// can find on the page
var scripts = object.getElementsByTagName("script");
for(var i=0; scripts.length; ++i)
{
if(scripts[i].innerHTML)
eval(scripts[i].innerHTML);
}
}
I hope someone could help me fix this function to work in damn IE.