Results 1 to 2 of 2

Thread: Ajax question

  1. #1
    Join Date
    Feb 2008
    Posts
    1

    Ajax question

    I am a little confused about how ajax works. I understand the javascript client-side making server-requests..but where exactly does server-side code (like python or perl or php) come into play in this model? It seems to me that javascript can take care of everything client-side.

  2. #2
    Join Date
    Feb 2007
    Location
    Ireland
    Posts
    1,007
    AJAX is used to silently (without being noticed) load new data from the server. It is a combination of both a client side and a server side operation. JavaScript cannot by itself operate beyond the browser, it requires help on the server side front. What happens is that the client (JavaScript) requests information from the server. This is where the server side scripting language comes in. PHP/Perl/Python/Java Servlets/ASP.net (to just name a few) will fetch the data that is needed and return it to the client, where it will be displayed without the need for a page reload.
    “The best thing about a boolean is even if you are wrong, you are only off by a bit.”

Similar Threads

  1. Multiple Ajax functions on the same page?
    By Tek9Designs in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 20 Jul 2007, 03:02 AM
  2. Practical AJAX Examples
    By sloppyjoe in forum General Questions
    Replies: 0
    Last Post: 22 Aug 2006, 02:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •