Pages

Tuesday, July 10, 2012

Ajax Integration

Ajax Integration

As you can see our page loads in the examples we have been dealing with have often entailed that the entire page reloads upon performing a new request such as adding a new data and displaying a new search result. There is a problem with relying on page loading entirely on php scripts. For one this is very slow since with each new request all html objects have to be reloaded again. Furthermore operations such as deleting data and updating new records that affect a single field in a set of large data list will be challenging (that is why updating and deleting samples will be introduced after illustrating the Ajax concept). All this makes it worthwhile for every developer coding server side scripting such as JSP (Java Server Pages) ASP.NET or PHP incorporate AJAX.

Many examples that have advanced the popularity of the AJAX in rendering content have been seen in major websites such as Facebook, Gmail and twitter. Powerful abstraction can also be rendered through libraries such as JSON and JQuery which have AJAX objects already set up. The use of Ajax has greatly improved on web content dynamism as well as usability in general. I will be introducing Ajax in bits by creating simple examples and later bring out the relationship of integrating it with PHP. I hope you will enjoy. :-)

Code List
  • An Ajax basic sample 
  • Separating php codes, html pages and ajax 
  •  Ajax and php Insert example 
  • Ajax and php delete example 
  • Ajax and php edit example
·      
·         
·         

No comments:

Post a Comment