Before the start of the request, I have beforeSend which puts the download image in the element, after the data from the server is received, they are inserted into the same site element. Works in FF, Safari, Opera, Chrome, but in IE there is only a picture of the download and that's it, nothing happens here is the code
javascript:
var log = function(msg){ console.log ? console.log(msg) : alert(msg); } function load(file, settings) { $('.body').ajaxStart(function(){ $('.body').html('<img src="http://vk.com/images/progress7.gif">'); }); $('.body').ajaxStop(function(){ log('Данные загружены!'); }); $.ajax({ url: file+".php", cache: true, //scriptCharset: "CP1251", success: function(data){ $('.body').html(data); } }); }
php:
<?php header('Content-Type: text/plain; charset=cp1251'); include ('db.php'); $select = "SELECT * FROM links WHERE id=5"; $pro = mysql_query($select, $dblink); $row = mysql_fetch_assoc($pro); echo $row['text']; ?>