Ajax ????

Discussion in 'HTML & Website Design' started by pulikuttann, Feb 26, 2007.

  1. #1
    Can anyone plz explain me more abt Ajax ???
    Is it easy to study it ???
    I am now doing a Open Source project in php/mysql ..............
    Will it be useful for me ???

    What all platform it support ?
    Did we need any other software installed on the server to make it work ???


    Please help me with some good tutorial sites !!!
     
    pulikuttann, Feb 26, 2007 IP
  2. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #2
    chopsticks, Feb 26, 2007 IP
  3. uppaluri

    uppaluri Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Check out http://www.w3schools.com/ajax/default.asp

    Many more good tutorials here.
     
    uppaluri, Feb 26, 2007 IP
  4. obiron

    obiron Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    in its basic form, Ajax allows you to modify the contents and visual layout of a web page without reloading it

    HTML is served from the web server as a static page which cannot change. Javascript came along and allowed access to the tDocument Object Model (DOM), javascript can change the values of any of the elements on the page. This allows you to interact with the user and modify the contents of the page as they carry out certain actions.



    A real world example.

    I have a results entry page that prompts the user for the number or results to enter and then builds a form with the correct number of rows. Each user appears in a drop down list on each row. The list of users is now about 300 entries long. This takes time and causes errors as the operator selects the wrong name. If a name is missing from the list then the operator has to abandon the form, add the name and start again.

    Reworked in Ajax

    The form defaults to 5 results (we will never have less than 5).
    The operator keys in part of the first name or surname.
    By capturing the onKeyUp event in Javascript, we interrogate the database and return a list of matching names in a separate part of the page.
    By capturing the onClick event against a name in the list we can populate the data in the form.
    A separate link captures an onclick event and adds a row to the form so that we can enter more names.
    A separate form is used to add people to the database. Because the database lookup occurs every time the user enters a name, the new name will appear immediately.


    Typical uses of Ajax:

    Autosuggest (using the onKeyup event in a form field)
    resorting lists using the onMouseDown event
    Adding or editing data in a database without using form submit.
     
    obiron, Feb 27, 2007 IP
  5. pulikuttann

    pulikuttann Banned

    Messages:
    1,839
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #5
    A great tutorial !!!!
    Thankz a lot !!!!

    Whether we need any other software install in the server to run ajax ???
    Is it possible to run Ajax scripts inside my Linux Hosting With out any add on ???
     
    pulikuttann, Feb 27, 2007 IP
  6. rgchris

    rgchris Peon

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If you have a server with PHP or ASP you can run AJAX just fine without having to install anything else.
     
    rgchris, Mar 1, 2007 IP
  7. WebGeek182

    WebGeek182 Active Member

    Messages:
    510
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    95
    #7
    AJAX is not a language or technology, it is a collection of technologies. It stands for Asynchronous Javascript and XML. It is more of a method than anything. The previously mentioned tutorials should help a lot. (although the Wikipedia link wasn't working so try this: http://en.wikipedia.org/wiki/Ajax_(programming)
     
    WebGeek182, Mar 3, 2007 IP
  8. maxed

    maxed Peon

    Messages:
    128
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    AjAX is usefu,l but i think it is extremely over hyped...its good but not excellent
     
    maxed, Mar 4, 2007 IP
  9. vitaminp

    vitaminp Peon

    Messages:
    202
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    @maxed:
    AJAX is definetley not overhyped. It makes great sites amazing, and in the future im certain that web 2.0 users will DEFINETELY go towards sites that use AJAX... take a look at facebook/myspace for instance.

    from what ive seen as soon as people start using facebook, they only go back to myspace to get updates on old friends who still havent made the conversion. why? facebook is easier to use.
     
    vitaminp, Mar 4, 2007 IP