|
XML Home
XML Tutorial About XML XML Viewers XML Editors XML Documents XML Syntax XML Elements XML Attributes XML with CSS XML with XSL XML Namespace XML Local Namespace XML Default Namespace XML Entities XML Creating Entities XML CDATA DTDDTD IntroductionDTD DOCTYPE DTD Internal DTD External DTD Combined DTD FPI DTD Elements DTD Element Operators DTD Attributes DTD Attribute Default Values DTD Attribute Types DTD General Entities DTD Parameter Entities DTD Embedded Images XSLTXSLT IntroductionXSLT Example XSLT Syntax XSLT <template> XSLT <apply-templates> XSLT <value-of> XSLT <for-each> XSLT <sort> XSLT <if> XSLT <choose> XPathXPath IntroductionXPath Location Path XPath Location Path - Absolute XPath Location Path - Relative XPath Attributes XPath Axis XPath Node Test XPath Predicate XPath Node Set XPath Comparison Operators XPath Boolean Operators XPath Number Operators XPath String Functions Tutorial Summary XHTML Tutorial AJAX Tutorial |
AJAX TutorialAbout this tutorialThis AJAX tutorial explains what AJAX is and demonstrates how you can use it. This tutorial uses ColdFusion to perform the server-side code but you can use any language you like for the server-side code. What is AJAX?AJAX (also referred to as "remote scripting") stands for Asynchronous JavaScript And XML, and refers to a method of programming that incorporates the following technologies to send and receive data between the browser and server:
With traditional web applications, when users submit a form they have to wait around for the page to reload before seeing the results. With AJAX, your application can dynamically populate a page (for example, retrieve data from a database) without having to reload the page. ExampleSelect a country from the form. This will query the database. If it has a region associated with it (i.e. Australia), a "Region" option will appear. The codeThe Form
This code does the following:
This JavaScript code does the following:
This code does the following:
SummaryWe learned that AJAX stands for Asynchronous JavaScript And XML, and that it can help you build more responsive, usable web applications. We then saw an example of AJAX in action - retrieving data from a database. Lastly, we saw the code behind the example. Next stepsIf you think you like AJAX, read the AdaptivePath article where the term AJAX came from. Try downloading the Prototype AJAX toolkit. For AJAX and ColdFusion, check out CFAJAX. Also, feel free to check out these Quackit tutorials on the technologies we used in the above example: In any case, Try and use your imagination and see what great uses you can find for AJAX! Enjoy this website?
Oh, and thank you for supporting Quackit! |
FREE Hosting!With every domain name you register with ZappyHost, you get FREE (ad supported) hosting.PLUS you get:
Featured Template:
(Build your websites in minutes!) Got a MySpace Page?Get "www.yourname.com" for your MySpace page. Learn how >>. |