JQuery .html() method and external scripts
- by Marco
Hi,
i'm loading, using the JQuery ajax() method, an external page with both html and javascript code:
<script type="text/javascript" src="myfile.js"></script>
<p>This is some HTML</p>
<script type="text/javascript">
alert("This is inline JS");
</script>
and setting the results into a div element, using the html() method.
While the html() method properly evaluates the inline JS code, it doesn't download and evaluate the external JS file "myfile.js".
Any tip for this issue?