Hi all,

I use $("xx").load to load a html file that has its own css and js, on
IE and Firefox, it work good, but on Google Chrome, it can't load css
and js in the html file, how can I fix it?

example:

subpage.htm:
<html>
<script type="text/javascript">
    alert( "Hello World" );
</script>
<style type="text/css">
.........
</style>

<body>
   <div>
     .....
   <div>
</body>
</html>


I use:
$("xx").load(" subpage.htm ");
alert ( "$("xx").html()" );

on IE and Firefox,it alert "Hello World" and show:
<style type="text/css">
.........
</style>
   <div>
     .....
   <div>

but on Chrome it only show:
   <div>
     .....
   <div>

no alert, no style..

Reply via email to