Good day!
I make such a simple query (using jQuery):
$.ajax({ type: 'GET', url: adrServ.value + "/auth/login?username=" + login.value + "&password=" + password.value, dataType: "jsonp", crossDomain: true, contentType:"application/json", //cache:false, success: function(data){var dat = data.AuthId; localStorage["uid"] = dat;}, error:function(){$.unblockUI();} }); alert(localStorage["uid"]);
Actually the last line displays null. If after this line once again register output data storage, then everything is OK. I can not understand what kind of nonsense. Who can prompts, the error in the code can? Work with localStorage is supported (in the browsers tested, all the rules.)