Tips Station Asp.net Article Seo Articles
Tutorials Code Samples
›  Home
›  Mission
›  About us
›  Contact Us
›  Feedback
›  Terms & Condition
Asp Articles
IT Solutions
 
› ASP.NET

› Programming Tips

› Ajax

› Asp

› ADO.NET

› Databases

› SEO

› CSS And Designing

› Php

 
Most Viewed Articles
 
› Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

› Change theme dynamically without page refresh in ASP.NET

› Install AJAX On Machines Running Visual Studio 2005

› Creating Pretty Popups Using AJAX

› Simple ASP Image Resize Function

› SQL Server Performance Counters

› ASP.Net Interview Questions And Their Answers

› Encode Url using ASP

› Difference Between DataGrid and GridView in Asp.Net

› Select Specific Value WithIn Drop Down List Or Radio Button List

more...
 
 
Home> Ajax
 
Ajax - The Basics
 

We are all familiar with using traditional web pages:

  • Enter a URL, click 'GO', and wait for a page to load.
  • Fill in a form, click 'Submit', wait for a page refresh.
  • Click on a link, wait for a page to load ....

This familiar model has been with us since the early days of the internet. Requests to the server for more information are typically answered by the web server delivering a new page. Until that page has loaded, we sit and we wait.

In many cases, the new page contains many of the same elements we had before; the images and text making up the page's template, for instance. We didn't really want to wait for all this to be served to us again, but unfortunately we had to.

Ajax (Asynchronous Javascript And XML) allows to navigate web pages while the page itself - quietly and unobtrusively - sends requests to the server for more data, and can use that data to update the user interface without the user having to wait for a new page or a page refresh.

What this means in practice is that we can build interfaces to our web applications which a re much more like those our users are used to from their desktop applications. Forms, text boxes and images can be populated automatically with data retrieved from the server, data grids can be sorted or paginated, and server-side databases can be queried and edited - all without the user having to wait for pages to load.

How does it work?

Ajax may be thought of as a 'buffer layer' between the user and the server. When the user gives instructions to the web page (for instance by clicking a button or link) the message is sent not directly to the server, but to our Ajax 'engine'.

This engine, when it needs to, makes requests of the server. But these requests may not necessarily correspond one-to-one with the user's requests. Sometimes Ajax will have foreseen the user's requirement and will already have the information requested. This is the 'Asynchronous' bit.

And guess what? Our page talks to the Ajax engine using Javascript commands embedded in the source code of the page, taking care of the second letter of Ajax.

There are several means by which the server can send data back to the Ajax engine - and as you've probably guessed by now, one of the most useful is XML.

This article has been taken from crackajax.net.

 
 
Vrp Technologies
 
Serversea Hosting
 
 
Latest Articles
 
› Sending SMS With PHP

› MySQL Join Tutorial

› Make An RSS Feed Using PHP

› Intro To Object: Option Variables

› Design An Online Chat Room With PHP And MySQL

› Create Tell A Friend Script With HTML & PHP

› Benchmark And Optimize PHP Script Speed

› What Kind of DBA Are You?

› SQL Server Performance Counters

› SQL Server Performance Tips

more...
 
Random Articles
 
› Simple ASP Image Resize Function

› Access Master Page controls from the Content Page - Asp.net

› Displaying Data using ASP.NET 2.0 Repeater

› Browser Detection in ASP

› ASP.NET Simple File Upload Function

› Search Engine Optimization & Submission Strategies - A Beginners Guide

› Install AJAX On Machines Running Visual Studio 2005

› Get Environment Details - Asp.Net

› Displaying an RSS Feed using ASP

› Displaying Data using ASP.NET 2.0 GridView

more...
 
Home Mission About us Contact us Feedback Terms Conditions
2008 © Copyright TipsStation. All rights reserved.