OK j'ai donc ce site, http://www.leinstein.dk.Un autre problème IE jQuery AJAX/post
Vous verrez « Bonjour tout le monde! » Cela vient de ok.php, ive a fait un script qui rafraîchit ok.php après 10 secondes. Quoi qu'il en soit, cela ne montre pas dans IE. Je ne sais pas pourquoi, et j'espère que vous pouvez m'aider.
Voici mon 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);
}
Et voici 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>
Nous vous remercions à l'avant ..!
Vous avez des erreurs de script évidentes (cache aléatoire ': lignes FALSE') –
Avez-vous essayé de courir quelque chose comme Fiddler pour avoir un aperçu ce que ces requêtes http ressemblent? –
Ive seulement utilisé Firebug pour voir requête http .. et je me suis 304 Non Modifié le dessus: http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js – Karem