What do I do if my ajax request is being redirected for example? For a "normal" request this is OK, the browser simply displays the response. Its not so nice when the callback method receives some unexpected HTML content.
1. From the things I read about Ajax, it looks like it's an extension to the HTTP protocol; using web pages with AJAX you can do things that you can't do with HTTP 1.1 (loading or reloading data without a page refresh). Do you think AJAX will evolve towards something like HTTP 1.2 or HTTP 2.0?
2. There are numerous initiatives to overcome browser differences within the AJAX community. Do you think these initiatives should be driven by the market/ community, or should they be driven top-down (from a standards organisation like W3C)? And what are your opinions on Xforms from W3C? Should the ideas from AJAX and XForms be merged?
Best regards, Eelco den Heijer Amsterdam, Netherlands
You can achieve somewhat similar ends with iframes though that has its own set of issues. Of course there are a number of proprietary approaches but most require plugins or special development environments. Though not entirely standards based, Ajax relies on simple technologies that most web developers already know � XHTML, JS, DOM, XML, etc. Best of all, it works with whatever backend technology you are most familiar with be that Java, C#, PHP, whatever.
With an existing app, we would recommend introducing Ajax bit by bit � to do a complex bit of validation or improve usability in some way. For developers that already know HTML, DOM, and JS, the learned curve is pretty smooth. As far as server performance is concerned � you will typically make more, finer grained calls but provided your server is architected properly and you test it, you should be fine. We can swamp a server with any web technique!
Reading XML is not a problem � in fact several of the examples in Foundations of Ajax do just that. The XMLHttpRequest object has an attribute: responseXML. The value can be parsed and the data used to update the DOM. It�s a great technique for testing!
Nate Schutta<br />Coauthor of <a href="http://www.amazon.com/exec/obidos/redirect?link_code=ur2&camp=1789&tag=ntschuttacom-20&creative=9325&path=tg/detail/-/1590595823/qid=1127567332/sr=8-1/ref=pd_bbs_1?v=glance%26s=books%26n=507846" target="_blank" rel="nofollow">Foundations of Ajax</a><br />My blog: <a href="http://www.ntschutta.com/jat/" target="_blank" rel="nofollow">Just a Thought</a>
I checked table of contents and downloaded sample codes. It is great. But one major issue may missing or not address clearly, it is how to handle those events in Ajax. Is there a good model to handle events? How to mapping to server side? I am checking some platforms and tools, like Echo2, DWR, Zimbra and XUI Framework, what is your opion on those platform? Is good choice implement in JSF? Thanks.