Timeline for Turn jQuery.ajax() request into XMLHttpRequest (vanilla JavaScript)
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 24, 2021 at 19:04 | comment | added | Ciprian | True, no need for jQuery. | |
Jun 24, 2021 at 17:42 | comment | added | Mohammad Ayoub Khan | I tried but fetch api, but that did not worked, now this code works like a charm, now i do not have to include jQuery on frontend, I'm making requests without jQuery now. | |
Feb 29, 2020 at 17:14 | comment | added | Muhammad Hassan | Can you help me out here? wordpress.stackexchange.com/q/359762/52859 | |
Apr 25, 2018 at 10:09 | history | edited | Ciprian | CC BY-SA 3.0 |
added 285 characters in body
|
Apr 25, 2018 at 10:00 | comment | added | Ciprian |
Yes, it does work similar. And onerror works similar to fail() .
|
|
Apr 25, 2018 at 8:16 | comment | added | virtualLast | yes! dude nice, quick question though - does the onload function work in a similar way to .done() in a normal jQuery ajax request? | |
Apr 25, 2018 at 8:15 | vote | accept | virtualLast | ||
Apr 24, 2018 at 15:55 | history | answered | Ciprian | CC BY-SA 3.0 |