#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2011
    Posts
    3
    Rep Power
    0

    Smile Javascript and Ajax


    What is the difference between javascript and ajax? And which one is best to use?
  2. #2
  3. Code Monkey V. 0.9
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2005
    Location
    A Land Down Under
    Posts
    2,102
    Rep Power
    1990
    AJAX is Javascript, so there's no difference in languages.

    AJAX uses Javascript to interact asynchronously with the server. That's the only "difference" to what most people think of as standard Javascript.

    As for which one to use, that will depend completely on what you want to use it for. Different tools for different purposes.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2011
    Posts
    99
    Rep Power
    0
    1. Javascript-A language that comes with your browser. It allows you to show an alert box, the one that you need to press Ok, validate forms, on the client, or without change the page. Usually, it is stopped by an alert, confirm, etc box.
    2. AJAX-Asynchronous Javascript And XML. Which means that with a help from a programming language like PHP, ASP.NET and etc. it can work changing data without refresh the whole page, just the part of the data will be refreshed.

IMN logo majestic logo threadwatch logo seochat tools logo