Why Does The Api Responds Twice Even Though I Have Called Once In Javascript Using Xmlhttprequest?
When I send the request then the first response is empty then it shows the JSON response twice. How can I solve this? Any advice will be helpful. Thanks :( Code: function go() {
Solution 1:
readyState has multiple possible values, including "loading" and "interactive", not just "complete". Use onload
instead.
Post a Comment for "Why Does The Api Responds Twice Even Though I Have Called Once In Javascript Using Xmlhttprequest?"