internet explorer - Why won't IE recognize javascript code returned in AJAX call? -


i have (hopefully) simple question.

i'm using ajax update div on current page. within what's being inserted div script block defines variable. within ff, can access variable, ie doesn't see var. need eval returned code in way ie recognize variable?

as simple example, if ajax call returns snippet of code , gets inserted div, alert in ff not in ie:

<script language='javascript' type='text/javascript'> alert('foo!'); </script>

yes, common workaround script elements using getelementsbytagname() , eval() them.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -