Question:
what is ajax, how can i do ajax programs?
sam
2006-06-18 21:54:14 UTC
what is ajax, how can i do ajax programs?
Seven answers:
Sara A
2006-06-18 22:46:06 UTC
check this link out:
caden
2006-06-19 01:30:47 UTC
LostMonkey covered the first part of your question pretty well. I just want to complete some resources.



Here is an excellent resource on how to setup an ajax powered html form, i.e submit the form using an asynchronous request instead of a classic request.



http://www.jibbering.com/2002/4/httprequest.html



And here is another link with more resources and tutorials,



http://www.freeprogrammingresources.com/ajax-tutorial-libraries.html



And here is how to submit a from using POST instead of GET



http://www.devx.com/DevX/Tip/17500



In general remember this:

The core of any ajax enabled page is the XmlHttpRequest object. Start on this. Read tutorials on this javascript object and understand its mechanics. Then as a practice, try to design an html form where you post your data (either with GET or POST) to a server side script (be it ASP, PHP whatever...) using xmlhttprequest to send it asynchronously. You will notice two things compared to the classic method.



1. Only the part of the page that needs to be updated is changed. You do not see any page refresh and this makes you whole application much more desktop like.



2. Since the html page does not refresh its entire contents after submission you will see that any data typed in the form are preserved. There is no viewstate involved here or any other technique for this to happen. Your form data are preserved onnly because only part of the page has been resubmitted i.e. the server's response did not contain the code for the whole page... just the code for the part of the page that needs to be changed.



After you do all this you are ready to have a look at some pretty impressive widgets that are using ajax to offer a much more dekstop like experience. For example,



http://www.activewidgets.com/grid/



You can also have a look at some proprietary APIs that wrap the xmlhttprequest object and offer some build in widgets like the YAHOO API (but it is not the only one).



Good luck!
Mahesh Ramichetty
2006-06-19 06:35:13 UTC
Ajax is nothing but the asynchronus java script programming.By using Ajax for the development of the webapplications one can develop more dynamic and interactive applications.Using this an asychronus call is made to the server through the Ajax engine that resides on the client side and the call is transferred to the Controller servlet or the proxy servlet on the server.The type of the exchange is not HTTP it is XMLHttp reqquest object is generated. All the current versions of the browsers support Ajax but the only this is that this is not standardized accross theindustry.



The applications like the Google Suggest and the Google maps etc. are developed based on the Ajax.



Some of the uses of the Ajax are :



Real-Time Form Data Validation: Form data such as user IDs, serial numbers, postal codes, or even special coupon codes that require server-side validation can be validated in a form before the user submits a form.

Autocompletion: A specific portion of form data such as an email address, name, or city name may be autocompleted as the user types.

Master Details Operations: Based on a client event, an HTML page can fetch more detailed information on data such as a product listing that enables the client to view the individual product information without refreshing the page.

Sophisticated User Interface Controls: Controls such as tree controls, menus, and progress bars may be provided that do not require page refreshes.

Refreshing Data on the Page: HTML pages may poll data from a server for up-to-date data such as scores, stock quotes, weather, or application-specific data.

Server-side Notifications: An HTML page may simulate a server-side push by polling the server for event notifications that may notify the client with a message, refresh page data, or redirect the client to another page.
LostMonkey
2006-06-18 22:01:53 UTC
AJAX is concept. It stands for Asynchronous Javascript and XML. Basically it defines a way for a website to refresh content without refreshing the whole page by using XML requests to the server and defining a call back handler (the basis of asynchronous communication) in Javascript. Different browsers handle Javascript differently so be careful when setting up an AJAX site.
2016-10-31 06:50:42 UTC
Step a million) flow away VB.internet flow to C# and initiate getting to grasp MVC .internet. All new artwork and demos are in C#. internet varieties is amazingly slow if making use of AJAX, MVC is extra organic HTML and effortless to artwork with AJAX Step 2) as quickly as you have masted that then study XML and JavaScript Step 3) Your executed, Use AJAX to interface in the present day which contain your MVC pages.
2006-06-18 21:57:50 UTC
Ajax is a scouring powder used to clean sinks, toilets and bathtubs. Now get back to work and start cleaning!
Charul Shukla
2006-06-19 01:32:11 UTC
Hi



For more information visit the following URLs



http://ajaxian.com/



http://atlas.asp.net



http://en.wikipedia.org/wiki/AJAX



http://labs.adobe.com/technologies/spry/


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...