I am hoping to get some help on this issue. Some users on IE have been reporting this javascript issue, but I have been unable to re-produce it.
In essence, for some class of windows IE users, the game doesn't work (or $.ajax() is not working).
What I know:
I swapped out an ajax call (ajax_init_trainer) and used a standard link with some request parameters to do the initialization and ppl seemed to get passed the problem until they hit the next ajax call.
I read somewhere that IE does crazy caching so you need to make the urls unique, which is why i added the _requestno parameter. However, setting the cache:false is said to also do this. This didn't fix it for someone who was complaining.
function done(res, status) {
var data = JSON.parse(res.responseText);
hide_loading();
if (status == "success") {
window.location.href="/bamo/battle/?{{ fb_sig}}";
}
else {
display_alert("Problem!",data.msg,$("#notifications"));
}
};
$(".monster_select_class").click(function() {
$(this).attr("src","{{MEDIA_URL}}/bamo/button_select_click.png");
monster_class = $(this).attr("monster_class");
monster_type = $(this).attr("monster_type");
ajax_init_trainer(monster_class,monster_type);
});
function ajax_init_trainer(trainer_class,monster_type) {
var data = {trainer_class:trainer_class,monster_type:monster_type};
var d = new Date();
var args = { type:"POST",url:"/bamo/api/init_trainer/?_requestno="+d.getTime(),data:data,contentType:"application/json;", dataType: "json",cache:false,complete:done};
$.ajax(args);
return false;
};