1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

JavaScript verus Ajax

Discussion in 'HTML & JavaScript' started by hazephase, Jan 3, 2012.

  1. hazephase

    hazephase Jr. VIP Jr. VIP

    Joined:
    May 29, 2009
    Messages:
    1,630
    Likes Received:
    96
    Hi

    I want to know, What is difference between JavaScript and Ajax? What is best for Scripting language?
     
  2. sirgold

    sirgold Supreme Member

    Joined:
    Jun 25, 2010
    Messages:
    1,260
    Likes Received:
    645
    Occupation:
    Busy proving the Pareto principle right
    Location:
    A hot one
    First off AJAX IS javascript. I'll spare you the wikipedia'esque definitions you could find around.

    AJAX is the set of javascript methods revolving around XMLHttpRequest that allow to fetch and display pages without the need to "refresh" the page itself like you'd need to with simple GET and POST http requests.

    Hence the acronym that stands for: Asynchronous JavaScript and XML.

    There are helper libraries like jQuery that try to overcome the specific technicalities of different rendering engines (gecko, webkit, presto, etc) but they're nothing more than APIs that still invoke XMLHttpRequest and all the other NATIVE js objects.

    HTH
     
    • Thanks Thanks x 1
  3. DanielMA

    DanielMA Registered Member

    Joined:
    Nov 4, 2011
    Messages:
    65
    Likes Received:
    5
    Location:
    DK
    Couldn't have said it better myself. The jQuery framework will provide you will a lot of very useful abstractions, for many purposes, accessing the DOM easily, etc.