Ajax stands for Asynchronous JavaScript and Xml. AJAX is a combination of different technologies put together to build the next generation of web applications, which are more responsive, more interactive and behave like their desktop counterparts.
AJAX features
Asynchronous loading of content without page refresh
Increased interactivity and responsiveness
Reduced loading time and server traffic
Example:
The AJAX application above contains one div section and one button.
The div section will be second-hand to display in progression returned from a server.
The key calls a function named loadXMLDoc(), if it is clicked:
Code:
<html>
<body>
<div id="myDiv"><h2>Let AJAX change this text</h2></div>
<button type="button" onclick="XMLDoc()">Click Me</button>
</body>
</html>
Next, add a <script> tag to the page's head section. The script section contains the XMLDoc() function:
Code:
<head>
<script type="text/javascript">
function XMLDoc()
{
.... content
}
</script>
</head>
Bookmarks