The easiest way is to use the $ .load () method.
$. load (action, data, callback)
The action can be a PHP script page, ASP, or just another web page. If the data is null, it performs a GET. Otherwise, it performs a POST. The callback method is executed when the method is completed (not necessarily successful).
http://docs.jquery.com/Ajax/load
For example:
<form> $.load("scripts/processOrder.php", { item: itemID, quantity: ordered }, function { window.location.href = "orderComplete.htm"; }); </form>
When the form is submitted, the processOrder script runs with the itemID and ordered arguments passed as data. Upon completion of the script, the browser will go to the orderComplete page for additional processing or displaying status.
If you want more control over Ajaxification, you can use the $ .get, $ .post or $ .ajax methods.
Neil T.
source share