This is my code that sometimes works and sometimes not.
var resolve_ajax_login=function(){ $.ajaxSetup({cache:false }); var loginvar=$("#inputlogin").attr("value"); var senhavar=$("#inputsenha").attr("value"); $.post("../model/php/login_ajax.php", {login:loginvar, senha:senhavar}, function(responseText){ if (responseText=="ok"){ window.location="areatrab.php"; }else{ $("#inputlogin").attr("value",""); $("#inputsenha").attr("value",""); $("#divmensagem").html("<span style='color:red;font-size:70%;'>"+responseText+"</span>"); } } ); return false; };
Ok This is in Portuguese, but I think you get the big picture. Sometimes this works, no problem, but at some other moments (only in IE, no problem in Firefox) it throws a javascript error in my jquery.js (minified) file. The error description is as follows:
The object does not support this property or method: jquerymin.js string 123 character 183 ..
which amounts to ...
{return new A.XMLHttpRequest}
somewhere in the middle of the jquery.js file. This seems to be very specific to IE since I did not have such problems in Firefox. This guy obviously had the same problem as mine, but there is no answer yet.
Has anyone else seen this? Thanks at Advance
PS: I am running IE 8
source share