what is AJAX

Discussion in 'JavaScript' started by leejohn, Nov 7, 2011.

  1. #1
    what is AJAX give the example of ajax and tell how it can be used in scripting langauge
     
    leejohn, Nov 7, 2011 IP
  2. WiseVIN

    WiseVIN Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Ajax is used in web development and is a programming/web designing language.
    You could search wikipedia for that:
    wikipedia.org/wiki/Ajax_(programming)
    HTML:
     
    WiseVIN, Nov 7, 2011 IP
  3. b10

    b10 Peon

    Messages:
    755
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ajax stands asynchronous javascript and xml
     
    b10, Nov 15, 2011 IP
  4. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #4
    Since you don't know how to use Google, you aren't worth explaining what it is to you.
     
    drhowarddrfine, Nov 15, 2011 IP
  5. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #5
    AJAX is not a language, it's a method of using Javascript and a server-side language to enable two-way communications between the client and the server.

    It's used to send data to the server and/or from the server to the client, without having to refresh the page.
     
    Rukbat, Nov 15, 2011 IP
  6. BorisKramar

    BorisKramar Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I agree, AJAX is not a language, but it is not a method of using Javascript either. It is part of the jquery library, which is a javascript (ECMA script) implementation. Also, you contradict yourself by saying that it is "a server-side language" - it is not a server-side language. Then again, I agree with the rest of the statement - it is a way to "trick" the communication model where the client has to send a request to the server to receive a reply. You can have different javascript triggers trigger AJAX calls that go and get information from the server (usually from the database), and returns the result without even refreshing a page. This way you can dynamically change content on the page, executing some server-side logic.
     
    BorisKramar, Nov 25, 2011 IP
  7. BorisKramar

    BorisKramar Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    This question is indeed very easily google-able. oh well.
     
    BorisKramar, Nov 25, 2011 IP
  8. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #8
    True, but that's not part of the definition, any more than "rubber" is part of the definition of "car", even though rubber is part of a car (the tires)

    jQuery is a Javascript library, it's not an ECMAscript implementation. (An ECMAscript implementation is the Javascript interpreter in your browser, or the JScript interpreter, if you use IE.)
     
    Rukbat, Dec 1, 2011 IP
  9. abdus

    abdus Member

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #9
    requesting a webpage on the background while you are on other page, this is from a visitor view
     
    abdus, Dec 1, 2011 IP