Another IE jQuery AJAX/post problem..
Posted
by Azzyh
on Stack Overflow
See other posts from Stack Overflow
or by Azzyh
Published on 2010-02-05T18:02:26Z
Indexed on
2010/05/08
14:58 UTC
Read the original article
Hit count: 247
OK so i have this website, http://www.leinstein.dk.
You will see "Hello World!" This is from ok.php, ive made a script that refreshes ok.php after 10 seconds. Anyways, This does not show in IE. I dont know why, and i hope you can help me out.
Here's My script:
function ajax_update()
{
cache: false
/* var wrapperId = '#wtf'; */
var postFile = 'ok.php';
$.post("ok.php", function(data){
cache: false
$("#wtf").html(data);
});
setTimeout('ajax_update()', 10000);
}
And here's index.php:
<?
header("cache-control: no-cache");
?>
<html>
<head>
<link href="style.css" type="text/css" rel="stylesheet" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="ajax_framework.js" language="javascript" charset="UTF-8"></script>
</head>
<!-- AJAX UPDATE COMMENTS BEGIN -->
<body onload="ajax_update();">
<!-- AJAX UPDATE END -->
<br>
<div id="wtf"></div>
</body>
</html>
Thank you in forward..!
© Stack Overflow or respective owner