yeah, i know, i promised an explanation. months ago.
well, time is difficult to come by these days, and hell, even now, i don't have quite a lot of it.
so here we go with the short, short, further-condensed, tiny version.
most people use a javascript-capable web browsing program. and most of those people leave javascript enabled. some of this is from ignorance, but for the majority, it's quite simple: most websites require javascript to be enabled to be even slightly usable - and the really spiffy utilities? it's a must-have.
take
google maps¹, for example. when you're clicking and dragging the image, to see what route to take to go to work, to the strip club, or to your brother alvin's house to watch your mentally retarded nephew, clive.. on a fairly high-speed connection, the map just seems to be there. like they have the entire city's map displayed the entire time.
that would be fairly easy to do, but it'd take a hell of a lot longer to load, and use far more resources than need be on both your part (i.e., the client) and theirs (i.e., the server)
so instead of loading the entire image into memory, they only load a part of it, so that you can see what you need to. when you click and drag, your browser is sending commands - using javascript - to their server to load different parts of the image. this is a benign way of taking a client's input, and sending it behind the scenes to a server so that it knows better how to respond.
most sites do this by use of javascript; in the case of mozilla/firefox
XMLHttpRequest(), and in IE, either the Active X object
Msxml2.XMLHTTP or
Micro$oft.XMLHTTP.²
however, this method also allows the client's browser to send information without informing the client of said transaction.
here is an example. view the source, if you're inclined, to see a somewhat primitive stealth submit ajax script.³
in closing, while i don't buy into the hype of "AJAX", it is good to know what it can do... both for you, and
to you. it's also wonderful proof that one should always think before one types; as one never knows where (or when) your input is going to be sent.
¹ -
seeing as they were one of the first noted to use this technique - and before the term "AJAX" was conceived - it's only fair to use them as an example.
² -
the micro$oft portion of this is, or will become outdated, as i update myself with their browser's internal API infrequently at best.
³ -
happily ripped from the article mentioned in the first post, as while i could write an example myself, i don't really feel like it.