d0ri0
06-03-2009, 12:00 AM
Hi, im trying to append an external html page on the same domain into a div.
The html page has this javascript in it that prints out two names:
Namnsdag : <script language="Javascript" src="http://www.startsidan.org/namnsdag.php"></script>
But in firefox the pages refreshes and gets bugged, in IE only the text before javascript tags shows up in the div.
Im using this jQuery code
$.ajax({
url: "test.html",
cache: false,
success: function(html){
$("#div1").append(html);
}
});
So my question is, how can i load the external page into the div correct?
I have also set up a test page to show this error: http://cior.se/bugg/index.html
Thanks.
The html page has this javascript in it that prints out two names:
Namnsdag : <script language="Javascript" src="http://www.startsidan.org/namnsdag.php"></script>
But in firefox the pages refreshes and gets bugged, in IE only the text before javascript tags shows up in the div.
Im using this jQuery code
$.ajax({
url: "test.html",
cache: false,
success: function(html){
$("#div1").append(html);
}
});
So my question is, how can i load the external page into the div correct?
I have also set up a test page to show this error: http://cior.se/bugg/index.html
Thanks.