I tried everything to solve this problem of ajax posting in the IE browser (for example, adding an ajax object in jQuery without a cache, dataType, configType, etc.), but in the end the problem was not in ajax / javascript, but to the file PHP: for IE browser only, the PHP file should start with the following header :
header("Content-type: text/html; charset=utf-8");
therefore, you must explicitly specify the type of content of the php page that you will get as a result of your ajax call.
An example assuming an html page called one.html where you place your javascript and php page called two.php
In one.html set javascript as
var url = 'two.php'; $.ajax({ url: url, type: "POST", success: function(response){ alert(response) } });
On the two.php page, set the following:
<?php header("Content-type: text/html; charset=utf-8"); echo ('stuff to do'); ?>
so for me it worked like a charm!
Edoardo
source share