This may be OLD NEWZ, but I just found it last week, so here is what I learned.
When you want to make things change on a web page, based on something the user selects or does, you used to have to do it with pure javascript. Say, if you wanted the user to select an item in one option menu, and see a second option menu change based on that selection. Javascript was always the answer. The reason it was the answer, was because it would do the DOC manipulations within the current browser session, and not make calls back to the server, provided you had all the data in javascript arrays and such.
Later, you could do the same thing in PHP (or cgi, or whatever), but you would have to use a combination of javascript and server processing (a PHP example), with a browser refresh in the middle.
NOW, thank yoda, you can begin doing such things with the badass XMLHttpRequest Object (which, apparently, is supported in all current browsers), AND, you can transfer XML data, URLS, files, images, whatever. The only hitch is it has javascript security, meaning all calls and data must come from the current domain. This is no big deal, because you can make a XMLRPC/SOAP/URL/Whatever proxy function that retrieves any data you need remotely, and spits it back to XMLHttpRequest from your domain.
These examples all worked in Firefox/Mozilla/IE6.
Read this first:
yeah yeah yeah
with associated example:
yes yes yes
then this one:
no no no *finger wagging* no no no
then, this killer one:
technology is finally becoming less of a pain in the ass!
Recent Comments