Sunday, March 05, 2006

AJAX

" title="Atom feed">Site Feed
First thing first, i am not goin to explain the AJAX at core level or at OS level. I am a beginner to this technology. so, i will try my best to explain, how can u build ur website on AJAX technology. OK. u can find loads of material on web for this topic. so i am not going in detail of this theory. U will feel comfortable if i cud explain the implementation. right!! but lets some basics.
AJAX: Asynchronous Javascript and XML.(try wikepedia for more)
What did u feel the difference, when u open a gmail account and yahoo mail account? (Don't worry yahoo is going AJAX very soon) the difference is: each time u open a new mail in yahoo, the whole page refreshes, however in gmail the only some part of the page changes its content. right!! this is the benefit of AJAX. u didn't need to refresh the whole page. it means, if u want to change a part of any web page, just get the data for that part using the network link. so u r saving the bandwidth of ur link. on the other hand if u will refresh the whole page for the change of a part, it doesn't make any sense. but this is the way most of the websites work. Soooo, switch to AJAX technology. HOW? i will TRY to explain the method. the whole method by which u can experience and learn the AJAX technology.The mantra behind this technology is Javascript and XML. nothing is new here. javascript and xml are known for years but i don't know why this technology is appearing, now. Sine i had worked on PHP, Javascript, XML, and HTML using APACHE server and MYSQL database server, so i will explain this technology using all these languages. don't woory, i will explain from basics so u must have some basic knowledge of PHP, JAVASCRIPT and XML(with html, of course). rest u can leave on me (and goooogle!!!). i will explain how to setup apache and mysql server on your windows machine. So, if u want to learn with me, in meantime u shud try to learn basics of PHP and Javascript(1-2 chapter of any book will be suffice). AJAX works like: ur client page will make request to server using javascript. the javascript will form the request packet using XML and send it to server, where the server will process this xml packet and extract the required information. this information will further processed by php and then reply will be send to client machine using xml packet. the javascript at client machine will recv the xml packet (and sometime html information) which will be displayed at client side page. THATS IT. so next time i will explain how to setup ur server and a small example. be ready to MAKE UR WEBSITE based on AJAX.i invite those ppl who knows more abt this technology. I want to learn and you too. so plz share ur suggestions and knowledge