the alert('hello'); is string so it is enclosed with "". Here is how I call LoadJS function.
var scriptEle = document.getElementById('scriptFromAjax')
if(scriptEle!=null){
LoadJS(scriptEle.innerHTML);
}
where scriptFromAjax is following...
My dynamic JS not working in IE. It is keep failing on line
newElem.innerHTML = theScript;
where theScript=alert('Hello'); which I get back from my AJAX call.
I had to go with the following workaround because javascript passed with AJAX contents was not working. Now following works ok in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.