Saturday, August 19, 2006

My first taste of AJAX

Found a very good example/tutorial here. It mixes AJAX form submit and passes the data via $_POST to another page.


The form submit is a plain HTML with the AJAX Javascript codes in it. I have used it in my intranet project such that the search text entered by the user are used in the next page for search in the MySQL database. The results are displayed in the same page without refreshing and the user wouldn't even know that the next page is called. The 2nd page which is in php receives the text entered by $_POST for processing.


Because of the small database that I'm using for development on a local machine the speed is very fast.

No comments:

Post a Comment