1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

The future of AJAX

Discussion in 'JavaScript' started by linkstraffic, Nov 5, 2005.

  1. #1
    As a webmaster, have you been implementing AJAX into your websites?

    That seems to be the future of the Web, what do you think about what it brings to the web pages?
     
    linkstraffic, Nov 5, 2005 IP
  2. Johnburk

    Johnburk Peon

    Messages:
    777
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    AJAX?

    The AJAX I know is a Dutch soccer team.
     
    Johnburk, Nov 5, 2005 IP
  3. fsmedia

    fsmedia Prominent Member

    Messages:
    5,163
    Likes Received:
    262
    Best Answers:
    0
    Trophy Points:
    390
    #3
    AJAX: Asynchronous Javascript and XML. What Gmail and every other Google product uses.

    It's been around for a LONG time already, almost 5 years. It was created by Microsoft back in the day, but Google brought it alive and hyped it up.
     
    fsmedia, Nov 5, 2005 IP
  4. Nokia999

    Nokia999 Guest

    Messages:
    1,488
    Likes Received:
    74
    Best Answers:
    0
    Trophy Points:
    0
    #4
    where we can see it ?
     
    Nokia999, Nov 5, 2005 IP
  5. torunforever

    torunforever Peon

    Messages:
    414
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Google Maps aka Google Local is a great example. Notice how you can drag the map around. The reason is it's making server calls without refreshing the page.

    Ajaxian is a good resource for all things Ajax.
     
    torunforever, Nov 5, 2005 IP
  6. torunforever

    torunforever Peon

    Messages:
    414
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I've been noticing Ajax here and there around the web, so I think a lot of webmasters are jumping on board. It shouldn't be used excessively though. Sometimes a form submit is good enough, and Ajax is only being added so they can be part of the club.
     
    torunforever, Nov 5, 2005 IP
  7. fsmedia

    fsmedia Prominent Member

    Messages:
    5,163
    Likes Received:
    262
    Best Answers:
    0
    Trophy Points:
    390
    #7
    I think AJAX has its place, just like tables do. It should be used with purpose, just not for the heck of it.
     
    fsmedia, Nov 5, 2005 IP
  8. Cristian Mezei

    Cristian Mezei Notable Member

    Messages:
    3,332
    Likes Received:
    355
    Best Answers:
    0
    Trophy Points:
    213
    #8
    You can see it in one of my websites which is not over yet (implementation phase)

    www.fight-plagiarism.org

    Only the "Report plagiarism" is active.
     
    Cristian Mezei, Nov 5, 2005 IP
  9. torunforever

    torunforever Peon

    Messages:
    414
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Can you describe the Ajax functionality at your site? It's not so obvious.
     
    torunforever, Nov 5, 2005 IP
  10. Cristian Mezei

    Cristian Mezei Notable Member

    Messages:
    3,332
    Likes Received:
    355
    Best Answers:
    0
    Trophy Points:
    213
    #10
    As i said, the website is currently being developed.

    The ajax functionality so far is : not being forced to load a new page.

    Extremly FAST loading times. :)
     
    Cristian Mezei, Nov 5, 2005 IP
  11. torunforever

    torunforever Peon

    Messages:
    414
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #11
    If the thing you're loading via Ajax is the entirety your main content, then you really need to reconsider your design. How is someone supposed to link to a specific page?
     
    torunforever, Nov 5, 2005 IP
  12. Johnburk

    Johnburk Peon

    Messages:
    777
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I don't seem to see the extreem fast loading time part. Maybe because your page is not heavy and my connection is 20Mbit.

    I will look AJAX up.

    Thank you
     
    Johnburk, Nov 5, 2005 IP
  13. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #13
    AJAX is not bound to XMLHttpRequest, as many believe it is (judging by some posts above). You can do pretty much the same with a hidden frame and some JS. It's the concept that is gaining the popularity. That is, more and more webmasters make requests to a web server without forcing the browser to change the current page. A good example of this is how an address form can be filled out. If the user enters the country name, AJAX-capable application will place a request to the web server and pull a list of states/provinces/prefectures that applies to this country and use JS to populate a combo box in the form.

    One thing web masters should be aware is that AJAX-powered pages are hidden from the browser's link-clicking logic and if a user clicks on a link or a button and the page changes without actually submitting the usual HTTP request (heck, it is even possible to serve the entire website under a single URL!), the back button will no longer work, the history is going to be screwed up, etc.

    J.D.
     
    J.D., Nov 5, 2005 IP
  14. torunforever

    torunforever Peon

    Messages:
    414
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #14
    True, but any developer worth his/her salt that's doing Ajax will be using XMLHttpRequest.
     
    torunforever, Nov 5, 2005 IP
  15. sjaguar13

    sjaguar13 Peon

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Is AJAX something that needs installed on a server, or can I just start doing stuff?
     
    sjaguar13, Nov 5, 2005 IP
  16. torunforever

    torunforever Peon

    Messages:
    414
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Let's say you want to use XMLHttpRequest. Here's what you need:
    • A browser that supports Ajax
    • A script server-side that will return a result
    • javascript client-side that will do something with that result

    The browser item is easy. Go to the wikipedia link I provided above and you'll notice most modern browsers handle it fine. (There are also a ton of links in there for tutorials)

    The server side script could be as simple as a PHP page that returns one word. A respectable Ajax app will return XML though, so you'll want to go through a tutorial to learn how to do that.

    The client side script is something else that just requires learning. Nothing to install.

    There are Ajax frameworks cropping up, which are supposed to make implementing Ajax easier. You make the case that you're installing something on the server, but it's not necessary.
     
    torunforever, Nov 5, 2005 IP
  17. sjaguar13

    sjaguar13 Peon

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Sweet, I know Perl, PHP, and JavaScript. I am going to start doing something....I don't know what, but it's going to be great.
     
    sjaguar13, Nov 5, 2005 IP
  18. evilmonkeyspanker

    evilmonkeyspanker Peon

    Messages:
    276
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #18
    no back button
     
    evilmonkeyspanker, Nov 6, 2005 IP
  19. linkstraffic

    linkstraffic Well-Known Member

    Messages:
    388
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    133
    #19
    I tried Ajax for a chat on a client website and it's quite good, no need to reload the whole page every sec and no need activeX or java...

    But I have seen more that can be done with Ajax, I should find back the website ; on this site we could move ay boxes (CSS) by drag and drop, I liked it but I'm not quite sure this is very useful for websites...
     
    linkstraffic, Nov 7, 2005 IP
  20. dave487

    dave487 Peon

    Messages:
    701
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #20
    If you personalize your homepage on google you can drag and drop the news feeds, I assume this is with AJAX and it is very impressive.
     
    dave487, Nov 7, 2005 IP