Category : Tutorials » Ajax Programming
. PDF ï¬
Download File
Free PDF eBooks Download
Tutorials
Ajax Programming
Content Summary :
Remoting Toolkit The lowest level of Ajax helpers is a remoting toolkit. If you were tocreate your own toolkit, this would probably be where you started out:wrapping XMLHttpRequest with your own API to make life easier. Areally good remoting toolkit should be able to do much more than sim-ply hide our ugly try/catch XHR instantiation code. What should hap- pen if your Ajaxian page is loaded by a browser that does not supportXMLHttpRequest? It ought to find a way, if possible, to provide all (orat least some) of its functionality by other means. For example, someremoting toolkits will use a hidden iframe to provide fake XHR supportto the page. Figure 5.1 lists a handful of such frameworks, and shows what each attempts to provide to developers. The Dojo Toolkit, JSON-RPC, andPrototype are all pure JavaScript frameworks that are agnostic aboutthe world of the server side (although Prototype was built with Ruby onRails in mind).