JavaScript vs Ajax

Discussion in 'JavaScript' started by webdesignbd, Dec 6, 2011.

  1. #1
    Hi

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

    Munni
     
    webdesignbd, Dec 6, 2011 IP
  2. madmod001

    madmod001 Peon

    Messages:
    14
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There is none
    Ajax is Javascript
    It s just a catch phrase describing the use of javascript to talk to the server without having to reload the current page.
     
    madmod001, Dec 7, 2011 IP
    Martificiam likes this.
  3. phpexperts

    phpexperts Greenhorn

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    21
    #3
    JavaScript is a client-side script, used to control a web page at the client side once it has downloaded. The validations in case of JavaScript will be handled particularly on client’s browser and no server side requests will be handled. AJAX allows JavaScript to communicate with the remote script and receive the response from the server, without the need to reload the entire page. JavaScript is the base on which Ajax works.
     
    phpexperts, Dec 9, 2011 IP
  4. JohnnySchultz

    JohnnySchultz Peon

    Messages:
    277
    Likes Received:
    4
    Best Answers:
    7
    Trophy Points:
    0
    #4

    they are not different, AJAX is not a scripting language Javascript is.
    in order for you to use AJAX you need to learn javascript
     
    JohnnySchultz, Dec 12, 2011 IP
  5. webdesignbd

    webdesignbd Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Then why we need to use Ajax????
    Munni
     
    webdesignbd, Dec 12, 2011 IP
  6. ShinoRex

    ShinoRex Well-Known Member

    Messages:
    227
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    148
    #6
    AJAX is not different from Javascript.Like , a child can't be differentiated by a mother.AJAX is a acronym for 'Asynchronous Javascript And XML'.AJAX is a new approach towards page reloading.If you want a specific book , you will purchase that bookand not the whole book store.Similarly if you want a small part of the data in a web page , you will not go for whole page reload, you woould preferto get the data you want.:)
     
    ShinoRex, Dec 12, 2011 IP
  7. JohnnySchultz

    JohnnySchultz Peon

    Messages:
    277
    Likes Received:
    4
    Best Answers:
    7
    Trophy Points:
    0
    #7
    with ajax you can communicate with your server without redirecting or sending a form just to update your site..
     
    JohnnySchultz, Dec 13, 2011 IP
  8. myst_dg

    myst_dg Active Member

    Messages:
    224
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #8
    Nobody forced you to use it. Anyway, what you were asking declared that you know nothing about javascript, as well as ajax. This thread is meaningless, waste of forum resource.
     
    myst_dg, Dec 14, 2011 IP
  9. yumyum8187

    yumyum8187 Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    The most straight-forward answer is "Ajax is used so that you can load data from a server without having to refresh the website. So for example if you are logged into your g-mail inbox when you receive a new e-mail it will automatically be displayed in your inbox without you having to refresh the page to see the new e-mail."
     
    yumyum8187, Dec 21, 2011 IP
  10. mmerlinn

    mmerlinn Prominent Member

    Messages:
    3,197
    Likes Received:
    819
    Best Answers:
    7
    Trophy Points:
    320
    #10
    Javascript is a client side scripting language. Ajax is a soap to wash with.

    You don't need to use Ajax. You can wash your hands with Ivory, Dial, or any other soap that turns you on.
     
    mmerlinn, Dec 31, 2011 IP
  11. JohnnySchultz

    JohnnySchultz Peon

    Messages:
    277
    Likes Received:
    4
    Best Answers:
    7
    Trophy Points:
    0
    #11
    nice one mmerlinn!
     
    JohnnySchultz, Jan 2, 2012 IP