Slashdot Mirror


Mastering Ajax Websites

An anonymous reader writes to tell us that IBM DeveloperWorks has an interesting article introducing the uninitiated to the world of Ajax. From the article: "Ajax, which consists of HTML, JavaScript technology, DHTML, and DOM, is an approach that helps you transform clunky Web interfaces into interactive Ajax applications. The author, an Ajax expert, demonstrates how these technologies work together. Ajax is more than just the latest fad -- it's your stepping stone to build better Web sites through efficient use of your time."

63 of 307 comments (clear)

  1. Ever notice . . . by Ph33r+th3+g(O)at · · Score: 5, Insightful

    . . . how when a new fad comes along, people say it's not a fad?

    --
    I too have felt the cold finger of injustice.
    1. Re:Ever notice . . . by ceejayoz · · Score: 5, Insightful

      Sure, but when something useful comes along, people say it is a fad.

      Look at what Google Maps did for online mapping and tell me AJAX is "just a fad".

    2. Re:Ever notice . . . by phoenix.bam! · · Score: 4, Insightful

      Ajax is a fad and it isn't. All the hype about it is of course, generated because it's the awesome new fad. But it is an incredibly useful tool. Digg.com does a great job of using AJAX the proper, no intrusive way. GMAIL too. It's great for some things and won't be going away soon. But soon there won't be 20 stories a week posted about it.

    3. Re:Ever notice . . . by baldass_newbie · · Score: 5, Funny

      That's why I use COMET (Common Object Meta Event Transactions) instead of AJAX.
      It keeps my websites Spic and Span.

      Oh wait...

      --
      The opposite of progress is congress
    4. Re:Ever notice . . . by BorgCopyeditor · · Score: 4, Funny

      Better watch out! Despite his bald head and suspiciously gay-looking earring, Mr. Clean is gonna kick all y'all's asses!

      --
      Shop as usual. And avoid panic buying.
    5. Re:Ever notice . . . by QuietLagoon · · Score: 2, Insightful

      Sure, but when something useful that is called a fad comes along, everyone thinks it will solve all the problems they face? Even those it doesn't?

    6. Re:Ever notice . . . by Kickboy12 · · Score: 3, Interesting

      I fail to see how anybody can be an "Expert" at something that is nothing more than a couple lines of code and a function or two. People seem to attribute "AJAX" to an entire javascript feature, when the part of the code that is actually "AJAX" is so small it's not worth mentioning. Not the mention the term AJAX seems overused and more complicated than it really is. It's basic javascript, nothing fancy or advanced or special.

      There's way too much hype over such a small thing. It gets annoying.

    7. Re:Ever notice . . . by baldass_newbie · · Score: 2, Informative

      JavaScript has some nice features that you won't find in any reference book or 'teach yourself' whatnot.

      In fact, I'm surprised at how agile the classes and objects can be. Once you get a handle on arrays and start thinking along the lines of JSON for your asynchronous work, you'll be ahead of the game. (Not you personally, just 'you' generically.)

      --
      The opposite of progress is congress
    8. Re:Ever notice . . . by qray · · Score: 2, Insightful

      Ajax and its predicessors, to me, are poor attempts to patch problems with building web applications. It's unfortunate that we haven't seen real solutions to the problems of building web applications. I'm surprised at how excited people get over things like CSS and Ajax.

      At this point in the game, we shouldn't have to be jumping through hoops and playing games to get great looking web applications. Web applications should be on par with traditional applications.

      --

      Q

    9. Re:Ever notice . . . by ceejayoz · · Score: 2, Insightful

      Sure, but that's a stupid people problem.

    10. Re:Ever notice . . . by killjoe · · Score: 2, Funny

      I am still waiting for an editable grid AJAX component.

      --
      evil is as evil does
    11. Re:Ever notice . . . by Pneuma+ROCKS · · Score: 2, Funny
      Ajax is a fad and it isn't.

      I just love it when people say something and then they don't. It's like their making a statement, and then they make the opposite, so they dind't say anything. I think it's an interesting way of showing both points of view without commiting to either one. Or not.

      --
      Favorite quote: "
    12. Re:Ever notice . . . by shobadobs · · Score: 3, Interesting

      Look at what Google Maps did for online mapping and tell me AJAX is "just a fad".

      Okay. The word "AJAX" is just a fad.

      The actual implementation will not be, and sites that use "AJAX" will range from the finely crafted interfaces to the usability nightmares.

    13. Re:Ever notice . . . by subtropolis · · Score: 4, Funny

      I wish people being stupid was just a fad.

      --
      "Our interests are to see if we can't scale it up to something more exciting," he said.
    14. Re:Ever notice . . . by thevoice99 · · Score: 4, Funny

      I agree. There are so many things on the internet that just get extensions ontop of them instead of rewrites of the base technology. Why are we even using HTML still?

    15. Re:Ever notice . . . by m50d · · Score: 4, Insightful

      Web applications shouldn't exist. It's as simple as that. They're an attempt to shoehorn the web into something very different to what it was designed for - it's meant as a documents platform, not an applications platform. If you want to run remote applications, there are plenty of ways to do so - X11 is the obvious one. If you feel it's inadequate for the higher-latency environment of the internet, you're probably right - but the solution to that is not to try and get http to do applications, it's to write a new protocol for doing internet applications. That's what we should have - a new, standard way of doing applications over the internet, designed for doing applications over the internet, and optimized for this task.

      --
      I am trolling
    16. Re:Ever notice . . . by Chazmyrr · · Score: 2, Insightful

      We have a standard way of doing applications over the internet, it's designed for doing applications over the internet, and the only reason it isn't optimized for the task is because some people just can't seem to move past 1993 and constantly whine that that isn't what the web was designed for.

      Well, tough shit. That's what the web is being used for. Do you really think that the web would have been successful without ecommerce? Ecommerce is a web application. Any site that takes input from the user and does something with it is a web application. Slashdot is a web application.

      The whole point of DOM, DHTML, scrpting, XML, CSS, and practically every web standard for the last 7 years has been to facillitate using the web for applications. Just about everyone is on board with this, but there's always a few that want to retard progress.

      Web applications do exist, they aren't going away, and any attempt to change this fact is just pissing into the wind. Stop being part of precipitate and start being part of the solution.

  2. How to become an AJAX Expert by Anonymous Coward · · Score: 2, Funny

    Call yourself one.

  3. Well done by gustgr · · Score: 4, Informative

    Interesting post. This kind of introduction might help beginners (like me) to know more about this new mix of different technologies and avoid confusion. Just these days a friend of mine said to me that he would like to learn this new "Ajax programming language". Many people still think that way. Thumbs up for the article.

  4. Ajax in action by gustgr · · Score: 5, Informative

    A nice example of Ajax usage can be found at http://www.meebo.com/.

    1. Re:Ajax in action by ceejayoz · · Score: 2, Insightful

      More useful examples would include Google Maps, Gmail, Flickr, etc.

    2. Re:Ajax in action by OverlordQ · · Score: 4, Interesting

      My only complaint about AJAX sites is it makes bookmarking something damn near impossible.

      --
      Your hair look like poop, Bob! - Wanker.
    3. Re:Ajax in action by junjun26 · · Score: 3, Insightful

      That's why it works so much better for web applications than normal web pages. Why would you bookmark a page in your Gmail account ;)

    4. Re:Ajax in action by Bogtha · · Score: 4, Insightful

      That's not Ajax, that's developers who have screwed up. You can have Ajax and addressability (bookmarks, back button, etc) for 99% of the things Ajax is good for. It's just you have all these newbie web designers jumping on Ajax like there's no tomorrow, so most of the things you see have had lots of shortcuts taken, and some of the things you see shouldn't have used Ajax in the first place.

      A good rule of thumb for knowing when it's appropriate to use Ajax is where you intend on posting something to the server, and then redisplaying the page you just came from. For example, Slashdot's moderation. It makes no sense to regenerate the entire page just to tell the server what you think of one particular comment. This is also the situation where bookmarks, the back button, etc aren't going to break.

      --
      Bogtha Bogtha Bogtha
    5. Re:Ajax in action by MasterPi · · Score: 2, Informative

      More useful!?!? don't know how many hours i've spent looking for a decent browser based jabber client even. The fact that it does AIM and Yahoo as well makes this one of the coolest sites I've found all month. Thanks for the link, g.p.

      --
      ( I
    6. Re:Ajax in action by Bogtha · · Score: 4, Interesting

      Umm.. ctrl+click link for email.

      ...and that would work if Google hired somebody competent to write their Javascript. But they hired people who use spans and onclicks instead of <a href="...">s, thus taking the addressibility away, thus taking the bookmarks, tabs, etc away too.

      --
      Bogtha Bogtha Bogtha
    7. Re:Ajax in action by Geoffreyerffoeg · · Score: 4, Insightful

      A good rule of thumb for knowing when it's appropriate to use Ajax is where you intend on posting something to the server, and then redisplaying the page you just came from.

      Completely. AJAX should only be used when you would've POSTed something to the server and made a slight change - both of those are non-bookmarkable and non-addressable. (Good) web designers seem used to when to GET and when to POST, so only use AJAX in the latter case. The general rule for that, by the way, is that POST should change stuff on the server, and GET should only retrieve data. Thus, you can only bookmark a view of data, not a change of it - you've already changed it once you're ready to bookmark.

      AJAX can actually help with the entire problem of tabs and forms - if the form only changes data but doesn't update the view, you can use a regular link to see a different view of it.

      The other solution is to do what Google Maps does - since they're using AJAX to retrieve views, they have a button called "Link to this view" or something that gives you a context-free URI to that particular view.

    8. Re:Ajax in action by Bogtha · · Score: 2, Interesting

      ummm... if you think about it, there's a good reason why AJAX tends towards onclicks instead of hard links. Think about it, it will come to you.

      Nope. Can't think of one. You do realise that it's perfectly reasonable to use Javascript with real links don't you? And I wasn't complaining about onclicks, I was complaining about spans and onclicks together being a half-arsed replacement for real links.

      the 'broken' bits you mention (addressibility, bookmarks, etc) are features of web content, not features of web apps.

      So basically I should stop wanting my basic browser features to work, even though other providers can do it, and even though it would work if they constructed their web application correctly?

      In an application, especially one that tracks state, bookmarks can break the logic flow.

      Only if you mix up the controller with the view.

      Nobody complains that Word doesn't open up a doc right to the paragraph you last read. Why should a web app be any different?

      Bad example, for two reasons. Firstly, we're not just talking about bookmarking, as I've already explained. Secondly, the analogy doesn't hold because nobody even mentioned bookmarking individual paragraphs. People would complain if you couldn't open individual Word documents directly from your file system, from your recent document list, etc, instead being forced to open Word, then use Word to find and open documents. The document is the unit of addressability here - whether that's a Word document or an email.

      --
      Bogtha Bogtha Bogtha
  5. JavaScript code is the core code - What??? by danwiz · · Score: 4, Interesting

    From the article:
    JavaScript code is the core code running Ajax applications and it helps facilitate communication with server applications.

    Depending on JavaScript could be its downfall, since JavaScript has so many functional work-arounds for each browser. Even the article mentions (but dismisses) this problem.

    From the article (again):
    Microsoft's browser, Internet Explorer, uses the MSXML parser for handling XML (you can find out more about MSXML in Resources). So when you write Ajax applications that need to work on Internet Explorer, you need to create the object in a particular way.

    "Particular Way" for browser one ... "Particular Way" for browser two ...
    Sounds like in an inherently poor design.

  6. Why AJAX matters by Geoffreyerffoeg · · Score: 5, Interesting

    AJAX isn't an end in itself; it's just a tool. It's like JavaScript. Back when the web was old, if you wanted to do data validation for a form (for example), you had to send the page to the server and wait for a new page as a response. When JavaScript became popular and well-enough supported, the webpage itself could check data before sending it to the server - although the checks couldn't be that complicated. AJAX is similar; instead of limiting yourself to either using a new page or client-side data, AJAX lets you use JS to access server-side data.

    As a concrete example, play with Google Maps for a couple of minutes, then try using a map from MapQuest. It will quickly start to annoy you that you can't drag the map and that you have to click to a new page to move the map around. GMaps isn't pure AJAX, admittdly, since it deals with picture data - it can just write the image tags to the page and move them around as you drag. But the side text and the map searches are AJAX - when you click search, you don't open a new page with the search results. You can keep using the map; the client will turn your search into an XML request, Google will process it, and send the results back as XML - asynchronously.

    For another example, I wrote this week a dead-simple chat program (because I needed a specific feature). It was simpler to write a web app instead of a real app, because the latter would require networking, windowing, and whatnot - the web interface made GUI easy and manual networking irrelevant. Without AJAX, I would need to have the page reload every second to check if there are new messages - very distracting. I had the system asynchronously check for messages in the background, and when one arrived, update just that part without refreshing the page.

    AJAX is a tool to be used when necessary. Don't freak out over it, but realize it's there whenever you need to use a more application-like interface instead of a page-like interface.

  7. Good but bad! by ech00ne · · Score: 5, Insightful

    AJAX doesn't make it easy to develop cross-platform web applications. Look at all the browser incompatibilities in the developing of Gmail and more recently MSN's start.com page.

    We need to re-standarize Javascript or at least make sure all the browsers implement a 100% compatible version. And I don't think that will work since not even HTML is properly rendered by any browser at all.

    1. Re:Good but bad! by _Neurotic · · Score: 3, Insightful

      It's not so much a matter of making each browser's implementation of JavaScript compatible. The real issue is their differing object models. The object models are a direct result of their respective design methodologies and approaches to security. There any many similarities (like the top level window and document objects) but when you get down to the nitty gritty (a must for "AJAX") you are bound to run into the differences that require conditional logic to provide cross platform compatibility.

      So, unless we end up with one web browser, we'll never have a common object model and will therefore always have incompatibilities.

    2. Re:Good but bad! by Tim+C · · Score: 2, Informative

      Thank you, that's exactly the point I was going to make. I'm not aware of any incompatibilities between javascript implementations, other than level of standard implemented (and I'm not aware of that actually being an issue in any of the major browsers).

      As you say, the problem is with the implementation of the DOM. In my experience, though, that boils down to using a liberal sprinkling of strategically-placed if statements; kind of like the cross-platform C guys use their ifdef statements.

      Sure, it'd be nice if we didn't have to, but that's why people get paid the big bucks. If it was too easy... ;-)

  8. Best thing since sliced bread! by abelikoff · · Score: 3, Insightful
    AJAX...helps you transform clunky Web interfaces into interactive Ajax applications.

    Recalling the Simpsons: "Only suckers buy [last year's] model. You are not a sucker, are you?"

    I can't wait to start padding my resume with the latest and greates technology out there that will do the same thing we've been doing for decade but with more acronyms and steeper learning curve.

  9. Re:How about a new language by Geoffreyerffoeg · · Score: 2, Insightful

    Half the opinions about Ajax is that it's not worth all the effort. Too complex.

    Too complex? As compared to what? Having each and every server-side action also generate a page for the user? With AJAX, you can have one or two pages for display, and the rest of the scripts just for sending or retrieving data.

  10. Let's Get Picky by cataBob · · Score: 3, Informative

    "Ajax, which consists of HTML, JavaScript technology, DHTML, and DOM, is an approach that helps you transform clunky Web interfaces into interactive Ajax applications."

    DHTML is nothing more than javascript and html. And how the heck are you supposed to use javascript without using the DOM, aka Document Object Model? Talk about buzzword compliant...
    1. Re:Let's Get Picky by JamesOfTheDesert · · Score: 2, Funny
      Ajax, which consists of HTML, JavaScript technology, DHTML, and DOM,

      And which one of those is the 'X' in 'AJAX' again?

      --

      Java is the blue pill
      Choose the red pill
  11. "Ajax is more than just the latest fad" by 0x20 · · Score: 2, Funny

    Somebody should break this news to Hani.

    (It's not going to be me.)

  12. Re:How about a new language by robertgeller · · Score: 2, Insightful

    I don't think the parent was implying the AJAX, itself, is too complex, but rather that JavaScript is, a statement which I entirely agree with. To do anything in JavaScript requires many lines of code -- and kludgy code, to me. JavaScript needs to either be seriously revamped or entirely rewritten. Unfortunately, the time it will take to a) get this new language written and, most importantly, b) get it standardized in all the major browsers (*ahem* especially IE) would probably just be too long. I don't think JavaScript is going to get a major revamp anytime soon. I think it's time for an alternative, though. Hey, client-side Python would be great; I'm all for it! :)

  13. Re:How about a new language by Fahrvergnuugen · · Score: 5, Interesting

    Well, as soon as we get all of the web browsers out there to adopt your so called "new language", we'll be all set. Your comment about Macromedia Flash made me laugh. Explain to me how Action Script interacting with the server with XML.send() is any different than JavaScript using XMLHttpRequest??

    Obviously you're not a web developer ;)

    Instead, how about a JavaScript 2.0? The language is only short a few key elements (like a native JSON serializer).

    I started developing web based applications 7 years ago. At that time, JavaScript was really only useful for image mouse overs and was more or less useless and I refused to use it for anything.

    Well, about 8 months ago I decided to give JavaScript another chance. All I can say is, wow it's come a loooong way.

    I'm a bit skeptical of all of the frameworks that have popped up. They seem to overcomplicate things profoundly. I've looked at a lot of them, but haven't decided that any of them are less work than the solution I developed on my own.

    My approach is to use JSON instead of XML. I have a server side script (can be any language, I used PHP for my last application) which acts as a listener script. The listener script accepts and sends JSON strings. The client JS composes and sends JSON strings with XMLHTTP request.

    It's clean, fast and simple to maintain and expand. I think these claims of AJAX being "too complex" are ridiculous.

    --
    Kiteboarding Gear Mention slashdot and get 10% off!
  14. Re:JavaScript code is the core code - What??? by Bogtha · · Score: 4, Informative

    "Particular Way" for browser one ... "Particular Way" for browser two ... Sounds like in an inherently poor design.

    The incompatibility you are talking about is the direct result of Microsoft implementing XMLHttpRequest with ActiveX, and everybody else implementing it as a native Javascript object. Microsoft are changing their implementation in Internet Explorer 7 to be compatible with everyone else.

    So no "inherently poor design", just a historical artifact that is a) easily worked around, and b) going away.

    --
    Bogtha Bogtha Bogtha
  15. Re:When is AJAX appropriate? by Bogtha · · Score: 3, Insightful

    You don't need polish to keep users, you only need polish to attract users. Take Slashdot as an example. Hideous design, atrocious implementation, no polish whatsoever, full of bugs, and yet people keep coming back to it.

    Once you've attracted users, they rarely go away unless you give them a push (like endlessly posting repetitive articles on Ajax, for example).

    --
    Bogtha Bogtha Bogtha
  16. Re:When is AJAX appropriate? by heinousjay · · Score: 3, Insightful

    You're almost there, but the number of users has nothing to do with it. You use it when it's appropriate to support a desktopish interaction model, and you don't want to reload the page every time.

    Also, I'd clean up the terminology. You don't use it for web sites. You use it for applications.

    --
    Slashdot - where whining about luck is the new way to make the world you want.
  17. Re:JavaScript code is the core code - What??? by Geoffreyerffoeg · · Score: 2, Informative

    "Particular Way" for browser one ... "Particular Way" for browser two ...
    Sounds like in an inherently poor design.


    Yeah, because var req; if (window.XMLHTTPRequest) req=new XMLHTTPRequest(); else req=new ActiveXObject("Microsoft.XMLHTTP"); is such poor design. (req supports the same capabilities now, regardless of method - that's why he said "create".)

    The reason behind this is that XMLHTTPRequest was originally a Microsoft idea using ActiveX. When Mozilla, Opera, Safari, etc. realized it was a good idea, they needed a way to create that object even though they didn't support ActiveX (justifiably). And Microsoft just kept its original design.

  18. Re:JavaScript code is the core code - What??? by KiloByte · · Score: 3, Insightful

    Also, if you consider the popularity of the "NoScript" extension, you'll see that a lot of people turn JavaScript off. Having it permanently disabled is a part of many security policies, as well; I would estimate that at least 10% or so of people will have JavaScript disabled at least on their first visit. This is a lot more than a minority such as "Links users" or "the blind".

    So... unless you disregard a significant percentage of viewers, you do need to provide an alternate version.

    The article says: "Ajax is more than just the latest fad -- it's your stepping stone to build better Web sites through efficient use of your time." -- tell me how can AJAX save you time if you have to do _both_ versions of the site, multiplied by the number of differently behaving browsers?

    --
    The creatures outside looked from Alt-Right to Antifa; but already it was impossible to say which was which.
  19. Have you tried Laszlo? by spoco2 · · Score: 5, Informative

    Not trying to spruik it or anything, but I'm currently working on a project of making a webapp using Laszlo.

    It's an open source language/server for creating flash based applications.

    We've found it to be very impressive how much you can do with so little code... and it's nice to have a proper OO backend to a flash frontend... the flash frontend means we can:

    a) Make our interface very pretty and like a 'normal' application
    b) Means it works in pretty much any browser...
    c) on pretty much all platforms...
    d) without a download of any plugin in most cases (just because of the penetration of flash)

  20. LAMPS + RoR + AJAX = WTF?? by Urusai · · Score: 3, Funny

    I'm bored with these paradigms. Can we invent some new ones already? I propose Flash + Ads + Porn + Paypal = FAPP.

    It's not just a fad!

    1. Re:LAMPS + RoR + AJAX = WTF?? by Hal_Porter · · Score: 2, Funny

      Yeah, the FAPPers will get TOSsed off.

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
  21. Re:How about a new language by trevorrowe · · Score: 2, Interesting

    How about a new language [instead] of a complex hybrid why not a new language ? Half the opinions about Ajax is that it's not worth all the effort. Too complex.

    I think you just missed the whole point of ajax with that single statement....

    Webbrowsers support javascript very well, and have done so for quite some time. Javascript has a nifty object that allows you to asynconously make requests without submitting a page, in the background so to speak. This request might fetch an XML document or might be a specially formated response to the developers liking. Javascript parses this. Then you use javascript to manipulate the DOM of the HTML page to reflect whatever new information you recived.

    Why do we need to add or create a new language to do this? Javascript already proves it does an excellent job and any replacement language would have to do exactly the same thing that javascript is doing now? So you want to buy a new horse to replace the old horse, but the new horse isn't going to be any different? Just new?

  22. Re:JavaScript code is the core code - What??? by Geoffreyerffoeg · · Score: 2, Informative

    Well it is ;). It assumes that XMLHttpRequest is implemented in one form or another, it throws an exception when Internet Explorer users have ActiveX disabled, and it doesn't handle Internet Explorer 5.0 (IIRC), which implements the same object, but with a slightly different name

    As a rule, you don't post error-checking code in programming discussions. It's assumed that everything's wrapped in a try block.

    What I used in my application was copied-and-pasted from Apple's XMLHTTPRequest tutorial, part of function loadXMLdoc(), with appropriate redirects to an error/troubleshooting page if creating the object ultimately failed.

  23. Re:JavaScript code is the core code - What??? by LordLucless · · Score: 3, Informative

    Depending on JavaScript could be its downfall, since JavaScript has so many functional work-arounds for each browser. Even the article mentions (but dismisses) this problem. From the article (again): Microsoft's browser, Internet Explorer, uses the MSXML parser for handling XML (you can find out more about MSXML in Resources). So when you write Ajax applications that need to work on Internet Explorer, you need to create the object in a particular way. "Particular Way" for browser one ... "Particular Way" for browser two ... Sounds like in an inherently poor design.

    Im not a huge fan of AJAX, but this is one criticism you can't honestly level at it. Browser incompatibilities exist for pretty much all client-side, web-based technologies, and AJAX has only a single minor change to work around, as opposed to getting a complex CSS layout to work cross-browser. *shudder*

    The simplest AJAX app relies on one piece of javascript functionality - the ability to make an http request through script. I've used this a number of times to submit data to a server when I didn't want to update the page.

    Most AJAX then also relies on the ability of javascript to parse an XML document (to examine the results of the post) and some form of dynamic page-rewriting to change the current page based on the XML document (generally object.InnerHtml for content changes, or object.style for stylistic ones).

    These features are fairly static - there's no need for them to change often. Simple AJAX - which is simply just offloading form submission - is good, useful, and most users don't even know it's there. As long as javascript keeps these three features, AJAX won't have major browser compatibility problems.

    AJAX which rearranges the page after each XmlRequest is a bit more troublesome. It's also the flashy bit, which means its the bit every man and his dog tries to do. Using this technique, it is easy to write an entire site in one page - that is, there's one page the user visits, and the page rewrites itself based on their clicks. This is the stupidity of taking AJAX too far; you end up breaking basic functionality of the web (back buttons, refreshing, bookmarking, opening in new windows/tabs).

    --
    Just because you're paranoid doesn't mean there isn't an invisible demon about to eat your face
  24. Recursive definition? by sirianni · · Score: 2, Funny

    "Ajax... is an approach that helps you transform clunky Web interfaces into interactive Ajax applications."

    Couldn't have said it better myself...

  25. Ajax, all the problems of time sharing, back again by Animats · · Score: 2, Interesting
    I keep encountering dynamic web sites that sort of work, or have performance bottlenecks. When I close some pages on tribe.net, there's about 10 seconds of disk activity from the browser, during which time the browser locks up. (Does anyone know what they're doing wrong?)

    A growing annoyance is a page that hangs during loading because its advertising site is slow. With plain HTML, page rendering isn't delayed for image loading. With AJAX, page load can be stalled while the ad server cranks. I keep seeing "Waiting for servedby.advertising.net" in the browser status line. Fortunately, I can just close the page and go to a competitor.

    I just bought 40 backup tapes. First site had some problem with its dynamic stuff. Went to another site and spent money there.

  26. Which stereotypical AJAX rant should I post... by cheesy9999 · · Score: 4, Funny

    I just can't decide:

    1) point out that AJAX is nothing new, it's just a fancy schancy buzzword for DHTML+XMLHTTPRequest, and that I'm so cool since I've been using it since 1997 long before someone coined the term. In fact, long before XMLHttpRequest was even invented!

    2) "Web 2.0" is retarded why do we need to version the web, Flickr sux, GMale sux, Google Maps sux, and anything with fancy javascript interfaces, rounded boxes, and pastel colors sux

    3) obligatory overused joke regarding AJAX the cleaning supply

    --
    -tom
  27. Re:JavaScript code is the core code - What??? by insert_username_here · · Score: 2, Interesting

    The incompatibility you are talking about is the direct result of Microsoft implementing XMLHttpRequest with ActiveX, and everybody else implementing it as a native Javascript object. Microsoft are changing their implementation in Internet Explorer 7 to be compatible with everyone else.

    You do know that Microsoft actually invented the XMLHttpRequest object, don't you (they then completely ignored it for years until Google realized its potential)? And since COM/ActiveX is the main way things get done in the Microsoft world, it's entirely appropriate (although, you're right, the security implications are huge).

    I will be really impressed if Microsoft really is changing their implementation to an in-browser object instead of a COM object, as it means that they will have changed something they invented to fit in with everyone else - the exact opposite of their usual behaviour.

    I'm all for bashing M$ when they deserve it, but give them credit where it's due.

    --
    -- Dramatisation - May Not Have Happened
  28. Re:How about a new language by geekoid · · Score: 2, Insightful

    Thats not complex. It may be bandwidth intensive, but that is different.

    --
    The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
  29. XML by TubeSteak · · Score: 4, Funny

    If by useful you mean allowing MySpace to get pwn3ed, then yes, AJAX is useful.

    Remember the Samy worm?
    http://namb.la/popular/tech.html

    He used html, java, dhtml, xml...
    Especially XML

    AJAX seems to be like Darth Vader... Powerful, yet dangerous.

    --
    [Fuck Beta]
    o0t!
    1. Re:XML by LarsWestergren · · Score: 2, Insightful

      He used html, java, dhtml, xml...

      He used JavaSCRIPT. Big difference.

      --

      Being bitter is drinking poison and hoping someone else will die

  30. scratch by Heembo · · Score: 2, Informative

    This article only begins to scratch the surface with AJAX. Beginners, only. One thing I'd like to add to the article - is the best way to parse XML documents. The article suggests:

    function updatePage() {
    if (xmlHttp.readyState == 4) {
    var response = xmlHttp.responseText;
    document.getElementById("zipCode").value = response;
    }
    }

    Which is really the absolute WORST way to parse XML. It's a bear to support cross-platform. I have had the best luck for client-side-Javascript-xml-parsing using Google's XPATH library at http://sourceforge.net/projects/goog-ajaxslt/ - Sarissa is a close XPATH second, but she has trouble supporting Safari and other browsers.

    Also, the article does not mention how brutal it is to work in JS at this level since there are very few savy development tools. Be careful before you invest a lot in AJAX or you will get CREAMED tring to support this code down the road.

    --
    Horns are really just a broken halo.
  31. Why this is a fad: by Mitglieder · · Score: 2, Interesting

    You can tell this is a fad because 1) this technique has been available for years this with Java applets, iframes and dynamic script src includes 2) it's not beneficial for 99% of the websites out there 3) it requires extra work to make the process intuitive to users 4) it's more costly to develop in that it takes longer and requires more smarts, and most of the time it isn't going to pay for itself, because simply getting rid of a page reload in the age of broadband doesn't itself improve the underlying quality of the website. The success of most websites still has 99% to do with content and 1% or less with UI aspects. Look at Craig's List or this website. The reason the technique has become popular all of the sudden is because Google has been incorperating it alot and someone gave it a name. Before the name AJAX came along you would have had to describe it with a sentance and that doesn't fit in a headline. Before HTTPRequest you could have as easily done an location.replace() to a CGI in a hidden frame and had the CGI's response do a callback to a function in the calling window and it would work exactly the same way. When you use the location.replace() method you avoid the clicking sound and the history entry when calling the hidden CGI. You can even use an iframe if you want to avoid using a frameset. This technique has been available since the 90's. I might still prefer this method because it's more robust and there's no need for compatability checking.

  32. Just finished a chat application using AJAX by eyebits · · Score: 5, Interesting

    I've been working on a project that provides a web-based environment for people with a medical condition to get counseling and support online. Chat has been one of the desired features, but the various methods for implementing chat were presenting a problem. Java applets and Flash applications presented problems with time to load for modem users as well as issues with having the right versions of Java/Flash player installed on client. I thought setting up a Jabber server and letting folks use a client installed on their computer would be a good solution, but many (most) found it too difficult to install and configure a chat client. (These are older folks often with little computer experience.) AJAX came to the rescue. The "chat client" is part of the web application. It is as lightweight as the typical web pages being loaded. The exchange of messages between client and server require very little bandwidth. The chat application is just part of the same environment that the users are already comfortable using. I don't see AJAX as the answer to everything and, for the moment, having web applications chock full of AJAX doesn't make sense. But, it has come in very handy in the case of chat for the project I am working on.

  33. Re:How about a new language by Watts+Martin · · Score: 2, Insightful

    Flash isn't a language, but ActionScript is. And, to be fair to Flash, I've seen a (very small) number of sites that actually use it for practical interface work -- an online reservation system, or the new Yahoo! maps beta, and it's good or better than any AJAX system I've seen. Flash is really a pretty good system for "rich internet applications" (the buzzword before "Web 2.0" became fashionable); it's just that developers (as opposed to designers), and users, have grown to think of it as a system for little more than producing annoying animated advertisements and unnecessarily frilly web pages. That it's gotten that reputation is largely Macromedia's fault, but it's not really a correct perception of it, and hasn't been since Flash 5, at least.

    At any rate, it may not be the best use of your time, but were I actually developing a web-based application that needed a sophisticated client, I wouldn't rule Flash out, depending on what the back end system I was developing on was. Like it or not, Flash has one big advantage over Ajax and, for that matter, HTML/CSS in general: it bypasses browser compatibility issues entirely.

  34. You've GOT to be kidding... by kuzb · · Score: 2, Informative

    Ajax, which consists of HTML, JavaScript technology, DHTML, and DOM[..]

    This came out of someone from IBM? I fear for the species if this is the case. Wake up! DHTML is just Javascript and HTML - you know, another one of those silly terms thought up to describe combinations of existing things. It's not something exclusive. This 'expert' should learn to get his terms straight.

    --
    BeauHD. Worst editor since kdawson.