In response to an article I wrote late last year about XMLHttpRequest the nice people at XML.com got in touch and asked if I’d like to write an article for them on the same subject. Of course I refused – until they threatened to hurt my teddy bear – at which point I caved in and agreed under duress.
Introducing Very Dynamic Web Interfaces. You thought your interfaces were dynamic? Well, pah! Now they can be very dynamic. PUT THAT IN YOUR TEA AND STIR IT.
The article itself introduces XMLHttpRequest with a macro view, and then rolls up its sleeves and gets you writing some code to put it all to use. I hope that it’ll serve as a useful way of dipping your toes into the XMLHttpRequest waters, enough to pique your interest and allow you to explore the possibilities further on your own. I’d be interested in hearing people’s feedback.




Comments
Do you have any insight on why they might have done it this way instead of returning some XML? Do you know of any down side to doing it one way or the other?
——-
I just implemented a series of dropdown menus that are populated from our database using this method. Seems to work everywhere except for Mac IE5. More here.
Inspired by LiveSearch (http://blog.bitflux.ch/wiki/LiveSearch) I’ve created a script which is cross browser, skinnable with plugin and webservice support.
This works on Opera 7+ (using iframes), Gecko browsers and IE 5+. It also has pageable results with keyboard nav using left and right keys. I’ve also extended the architecture (with PHP) behind it using XML which makes it possible to have multiple skinnable elements on one page. The architecture also supports plugins which I call services and XMLRPC and SOAP webservices. I’ve posted about it on my blog which has two liveInfo elements on it (http://www.nodetraveller.com/blog/?p=31) and more info about how it all works.
After playing around with some cheesey “real world” applications, it seems that a common problem becomes managing multiple XMLHttpRequests. I’ve run into overwritten requests and it can be frustrating. Moving toward individual objects/instances of an XMLHttpRequest object may help in keeping things in the right order.
Would you be willing to expand that article in the future to show how to accomplish something like this?
http://kevin.is-a-geek.net/projects/deliciousfilter/
Great job!