Hello there, my problem is I've got this strange error everytime I try to send xmlhttprequest to any other site than tizen.org. What is more the request works normally as expected on Samsung Gear S3 Classic, but not on Gear fit 2 pro. I tried to use request supplied by another users on this forum, but nothing works. I have
tizen.org/privilege/internet set with all necessary certificates. Sample codes I've tried are:
var theUrl = 'http://api.microsofttranslator.com/V2/Http.svc/Translate?oncomplete=mycallback&appId=8B841CA7C1A03443682C52AD07B7775A7BD5B3AA&from=en&to=fr&text="testing sample"' ; xmlHttp = new XMLHttpRequest(); xmlHttp.open("GET", theUrl, false); xmlHttp.send(null); var xmlDoc = xmlHttp.responseXML ;
and
// js var client = new XMLHttpRequest(); client.open("GET", "https://cors-test.appspot.com/test"); client.onreadystatechange = function() { if (client.readyState == 4) { if(client.status == 200) { console.log(client.responseText); } } }; client.send();
Its all the same. Works on Gear S3, but on Gear fir 2 pro its prompting "ABORT_ERR: XMLHttpRequest Exception 102: The user aborted a request in synchronous requests".
Gear S3 Tizen version => 3.0.0.1 and Gear fit 2 pro software version => R365XXU2AQG9
Any help appreciated :)