Try to search your question here, if you can't find : Ask Any Question Now ?

xml http request is not working in opera mini

HomeCategory: stackoverflowxml http request is not working in opera mini
Avatarjulie asked 4 weeks ago

var xhttp = new XMLHttpRequest();

xhttp.onreadystatechange = function () {
    alert(this.status) // this alert showing 0
    if (this.readyState == 4 && this.status == 200) {
        console.log("data==", this.responseText)
        //document.getElementById("demo").innerHTML = this.responseText;
};"POST", "url", true);
xhttp.setRequestHeader('Content-type', 'application/json');
xhttp.send(JSON.stringify({"name":"myname" }));

above is my code which is working fine in desktop opera and all other browsers but in opera mini it is not working, status is 0, can someone help me out please.

1 Answers
Best Answer
AvatarAmit answered 4 weeks ago
Your Answer

11 + 1 =

Popular Tags

WP Facebook Auto Publish Powered By :