|
 |
>> Actually, I have a question. How is a site like this even physically
>> possible in the first place? How can you send a request to the server
>> and receive a response without reloading the entire page?
>
> The term you're looking for is AJAX, which is a method of programming
> web pages that uses the XMLHttpRequest function. If you understand
> generally how XMLHttpRequest works, you'll understand how this works.
Right, so... if I'm understanding this right, XMLHttpRequest allows a
mere script to instruct the browser to send an HTTP request, and return
the body of the response as data, which the script can then further
manipulate? (Rather than, say, just nagivating to another page, in which
case the script can't process the data because the script won't even
*exist* any mroe...)
I had no idea that you can actually do that...
(Then again, Wikipedia's example code seems to show JavaScript doing
exception handling too, which I had no idea was possible.)
Post a reply to this message
|
 |