Using plain, native Javascript (no jQuery or other framework answers please), how does the response part of an AJAX call get processed and formatted before being sent back to the requesting script?
I have been looking for this answer and cannot seem to find it in the many searches I have performed. I would like to see an example, and not one focusing on the POST
or GET
variable access. I want to know how to respond to the script.
echo json_encode($arr);
for example. XML and HTML in roll-your-own scripts (NOT jQuery...) can be trickier to get working (or at least back in theMSXML2.XMLHttpRequest
it was).