jquery - $.ajax error on mobile safari -


this weird.

only on mobile safari, , since last night script....

 function login(login)  {         scrollto(0,0);               var persistent = 'false'             if ($('#persistent').is(':checked')){persistent = 'true';}             if ($('#loginmsg').is(":visible")) {$('#loginmsg').hide();}             var password = $('#password').val();              var email = $('#email').val();     $.ajax({         type: "post",         url: "rpc.php",         data: { id: email, value: password, persistent: persistent, method: "loginm"},               datatype: "json",         timeout: 5000,         success:    function(data){          if (data.login=='true')             {             $('#pleasewait').jqmshow();              location.reload(true);             }                    else             {                $("#loginmsg").show();             $("#loginmsg").html(data.status);                }            },           /* error: function() {         alert('this taking long. try again now, or wait , try again later.');*/           error:function (xhr, ajaxoptions, thrownerror){                 alert(xhr.status);                alert(xhr.statustext);           } }); }    
  1. alert(xmlhttprequest.responsetext); - returns me entire script page
  2. alert(textstatus); - returns 'ok'
  3. alert(errorthrown); - returns '200'

when run script errors immediately, doesn't wait 5 seconds. have quarantined script other scripts don't interfere it. cleared cache on ipod.

this seems quite common problem. 1 solution seems rebooting sever isn't option.

the url relative. should absolute : http://myserver.com/rpc.php


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -