I have been having a hard time finding a good solution for this. I have a sub-domain that is meant to provide secondary services to a site. Like suggestive selling, etc. I have created one code that will submit a ajax post for tracking. The second ajax call will grab html, and post it to a div. This works great in IE10, Chrome, Safari, and Firefox. But doesn't work in IE 7-9.
I have found many post, that semi-explain a solution. But non have seemed to work for me. Does anyone have experience with dealing with this? Help is much appreciated.
// TRACKER
function log() {
$.ajax({url:"http://sub.differentdomain.com/in/li/", dataType:"html", type:"POST", cache:false, timeout:1000, data:{item:"ITEM1", session:"SESSIONKEY"}});
}
// DISPLAYER
function getTools() {
$.ajax({url:"http://sub.differentdomain.com/out/sug/", dataType:"html", type:"POST", cache:false, timeout:6000, crossDomain:true, async:false, beforeSend:function() {
$("#ccont #selling-tools").html('<div class="boxset" style="width:95%; margin:20px 2%;padding:20px 0.5%; margin-bottom:0;"><img src="loader.gif" align="center" /></div>').show();
}, error:function() {
$("#ccont #selling-tools").html("");
}, data:{item:"ITEM1", session:"KEY1"}}).done(function(html) {
$("#selling-tools").html(html);
});
}
Any other suggestions on accomplishing the same outcome would also do...