jquery - Why does this not work on blackberry -
i have ajax function works on android, iphone, blackberry torch , webkit browsers. im trying test on various version 5 , 6 blackberry simulators error handler gets called.
eg response in message boxes is: error, complete.
the error returned function is: 'error- status: error jqxhr status: 0 responsetext:'
whereas other devices is: success complete.
do have special blackberry?
$(document).ready(function () { //login form login link click $("#login a.login").click(function () { //call approve method on code behind $.ajax({ type: "post", url: "login.aspx/loginuser", data: "{'username':'admin', 'password':'admin' }", //pass parameter names , values contenttype: "application/json; charset=utf-8", datatype: "json", async: true, error: function (jqxhr, textstatus, errorthrown) { alert("error- status: " + textstatus + " jqxhr status: " + jqxhr.status + " jqxhr response text:" + jqxhr.responsetext) }, success: function () { alert('success'); window.location.href = "index.aspx"; }, complete: function () { alert('complete'); } }); }); });
never got bottom of this, solution not use ajax version 4 , 6 bb's
Comments
Post a Comment