HI i am trying generate Zypr Token with following code...
/*******************CODE***************************/
var xmlHttp = null;
var theUrl = "https://pais-dev.zypr.net/api/v2/auth/login/?username=anonymous&key={2ad5196442833a888db21a2fdfd56a77}";
localStorage.setItem('theUrl', theUrl);
xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET", theUrl, false);
console.log(xmlHttp.readyState);
xmlHttp.send(null);
var strData = JSON.parse(xmlHttp.responseText);
console.log(xmlHttp.responseText);
if (strData.response.information.code == 200) {
_token = strData.response.data[0].token;
localStorage['_zyprtoken'] = _token;
/*******************CODE***************************/
It is work well in web simulator ,but not tizen emulator.
i am getting xmlHttp.readyState=1 (which means connected to server)
and getting the following error
pocjs/hndapi.js (14) :ABORT_ERR: XMLHttpRequest Exception 102: The user aborted a request in synchronous requests.
it working in all browsers and tizen web simulator except EMULATOR.