Summary
This chapter introduced the Ajax style of creating XML applications. Ajax uses a combination of XML, the XMLHttpRequest object, JavaScript, XSLT, XHTML, and CSS to create responsive web applications. Because you’d seen the other technologies earlier in the book, I focused on the new XMLHttpRequest object in this chapter.
You saw how to use the XMLHttpRequest object to make server requests. You were able to display a HEAD request and retrieve content from an XML document. You looked at two simple examples—validating a username in a form, and creating an address-book application.
I showed how to use the Sarissa library to create cross-browser code, and I listed some of the other toolkits that may help. I finished by looking at criticisms of Ajax and some ways to address these. I also covered some of the Ajax best practices.
In the next chapter, I’m going to look at a totally different approach to working with XML on the client. You’ll see how to use Flash to load and display XML content.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2006 Sas Jacobs
About this chapter
Cite this chapter
(2006). The Ajax Approach to Browser Scripting. In: Beginning XML with DOM and Ajax. Apress. https://doi.org/10.1007/978-1-4302-0177-9_9
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0177-9_9
Publisher Name: Apress
Print ISBN: 978-1-59059-676-0
Online ISBN: 978-1-4302-0177-9
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books