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."

307 comments

  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 Anonymous Coward · · Score: 0

      and how everyone who writes anything about AJAX is an "Expert" ?

    2. 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".

    3. 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.

    4. 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
    5. 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.
    6. Re:Ever notice . . . by robertgeller · · Score: 0, Redundant

      That's _exactly_ what I was going to make a comment about -- before I saw yours.

      It's so true, too.

      Javascript is just a kludge -- and so is AJAX.

    7. Re:Ever notice . . . by __aaclcg7560 · · Score: 1

      Fads sells over-priced books. Go figure.

    8. Re:Ever notice . . . by heinousjay · · Score: 1

      Javascript is just a kludge -- and so is AJAX.?

      Anything to support that opinion? I mean, it's pretty damn sweeping. I suspect you don't even really understand Javascript - which is nothing unusual for a detractor.

      --
      Slashdot - where whining about luck is the new way to make the world you want.
    9. 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?

    10. Re:Ever notice . . . by Anonymous Coward · · Score: 0

      .NET was "not a fad", either. I never believed it, not even when it got fluff-laden hype stories routinely posted to developers.developers.developers.developers.slashd ot.org.

      Ballmer doesn't throw chairs, he just has very lousy juggling partners.

    11. 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.

    12. Re:Ever notice . . . by Parham · · Score: 1

      That article didn't seem so "expert" to me; it just seemed like every other article. So yes I agree with you, I don't know why some people are claiming to be "experts" in this field when it's really not a field but rather a combination of different fields. Most articles that are coming out about AJAX seem to be saying the same thing though. I have to say also, that these articles are teaching me a lot about what AJAX means, how to use it, and what to use it for. The basic code they show with explanations is nice.

    13. Re:Ever notice . . . by robertgeller · · Score: 0
      Anything to support that opinion? I mean, it's pretty damn sweeping. I suspect you don't even really understand Javascript - which is nothing unusual for a detractor.
      "Understand" JavaScript? How can anyone understand JavaScript, first of all? Secondly, I understand it insofar as most any programmer does -- I understand what it can do and how to accomplish the things I need to do with it. Do I "understand" it like I do a great language like Python? Hell no! Why? Because it's impossible to understand like the latter. Regarding AJAX being a kludge, the concept isn't, but the implementation is. It's implemented in JavaScript, which, by definition, makes it kludgy.
    14. Re:Ever notice . . . by heinousjay · · Score: 1

      Ah, so no, you can't support the opinion. That would have been simpler to say.

      There's definitely a weird prejudice against Javascript, and I think you've expressed it perfectly. I spent a lot of time recently defending it, professionally speaking. Most people that told me it was useless didn't even realize that it's a fully object oriented language. The prototyping throws people expecting classes way the hell off.

      In the end, though, any language with closures is going to be one mighty powerful tool.

      --
      Slashdot - where whining about luck is the new way to make the world you want.
    15. 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
    16. 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

    17. Re:Ever notice . . . by larry+bagina · · Score: 1

      When Javascript came out, I didn't like it. Netscape hangs, gives weird errors, and the tacky animations. What's not to like? But when you separate the language from the hordes of copy/paste "web designers" and the DOM (and MS/Mozilla differences), the JavaScript/ECMAScript/ActionScript language is a decent programming language.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

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

      Sure, but that's a stupid people problem.

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

      I am still waiting for an editable grid AJAX component.

      --
      evil is as evil does
    20. Re:Ever notice . . . by Invulnerable+Bede · · Score: 0

      Also, dude, 'spic' is not the preferred nomenclature. A person of Latin-American or Spanish descent, please.

    21. 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: "
    22. 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.

    23. Re:Ever notice . . . by happyslayer · · Score: 1

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

      Notice the proper use of the plural...definitely a fine product of a Southern American college!

      And it don't matter anyways...the Pine-Sol sponge will wipe the floor with youens when the Tide comes in around Dawn...The floor will no longer be red from the blood of the Unbelievers!

      But none of them do Windows...

      --
      Never confuse movement with action. --Hemingway
    24. Re:Ever notice . . . by Professor_UNIX · · Score: 0
      Look at what Google Maps did for online mapping and tell me AJAX is "just a fad".

      AJAX is just a fad. While it is a nifty trick to be able to scroll around the map, it doesn't scale well into real applications. They could've done it just as well, if not better, using an actual Java applet that your browser ran and connected to a server over a network socket. AJAX takes the portability of Java and subjects it to an even quirkier environment where you have to rely on a standard Javascript implementation across browsers... as you've probably seen, this fantasy world where all Javascript implementations and display engines are equal does not exist. Something that works fine and displays fine in IE will not necessarily work fine in Firefox and vice versa. A Java applet on the other hand would run exactly the same on Windows as it would on Linux and as it would on a Mac.

    25. Re:Ever notice . . . by Anonymous Coward · · Score: 0

      What parallel universe do you live in?

      Let alone potential incompatibilities for Java code (I vaguely remember something about a MS JVM), applets just aren't usable. They're just too dang slow.

      As to scale to real applications- WTF? Google Maps is more or less the pared down version of Google Earth. It's useful because it scales down usefully on a browser. Google Maps is incredibly useful for small web apps, and isn't going to be replaced by a "real" application any time soon.

    26. Re:Ever notice . . . by mpfife · · Score: 1

      No, no, Mr. Sparkle-O http://www.geocities.com/chuckhoyt/mrsparkle.html is even better! "I'm disrespectful to bad web design! Can you see I am serious?"

    27. Re:Ever notice . . . by BorgCopyeditor · · Score: 1
      the Pine-Sol sponge will wipe the floor with youens when the Tide comes in around Dawn

      Ah, the mighty Sponge of Cleansing. Ph34r.

      "youens"? Central PA? (I'm actually from New York, but were Mr. Clean to prod yo' buttock, he would surely do so in the most possessive 2nd person plurality possible.)

      --
      Shop as usual. And avoid panic buying.
    28. Re:Ever notice . . . by Anonymous Coward · · Score: 0

      No way, Ajax cleans like a white tornado!

    29. Re:Ever notice . . . by hunterx11 · · Score: 1

      We're not talking about the guys who built the web here, Walter; this guy used ActiveX on my website.

      --
      English is easier said than done.
    30. 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.
    31. 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?

    32. Re:Ever notice . . . by Anonymous Coward · · Score: 0

      If used in the right place (i.e. where it's not just there to look pretty because it actually enhances the user experience) it is extremely beneficial, but if somebody's just using Ajax because it's Ajax and everyone's using it, they should know that they are partly responsible for the crappification of the reputation of Ajax.

    33. Re:Ever notice . . . by Schraegstrichpunkt · · Score: 1

      Hah! Blogmodsters, please mod that up!

    34. Re:Ever notice . . . by Dr.Sweety · · Score: 1
      Look at what Google Maps did for online mapping and tell me AJAX is "just a fad".

      Every time people talk about how great Google Maps is I can't help but think that http://map.search.ch/index.en.html is way better than Google Maps in usability terms. You can actually left click on the map and it zooms right in, a right click zooms out. There are symbols indicating bus stations (they even show you the timetable). I know that this only covers Switzerland but I still think it's superior to Google Maps.
    35. Re:Ever notice . . . by shmlco · · Score: 1
      So true. I've built a web application client and server that solves all of those problems. Unfortunately, at this point in time you can't download the client, as my site is built using that technology...

      Which illustrates the point. We're using the tools we have available.

      --
      Any sect, cult, or religion will legislate its creed into law if it acquires the political power to do so.
    36. Re:Ever notice . . . by m50d · · Score: 1

      And it works in konqueror, which gives it my vote.

      --
      I am trolling
    37. Re:Ever notice . . . by chesterjosiah · · Score: 0

      One of the following is true:

      1-AJAX's usefulness and the excitment it caused will be shortlived. AJAX is a fad.

      2-AJAX's usefulness or the excitment is caused will last a very long time. AJAX is not a fad.

      Nothing can both be a fad and not be a fad. Even AJAX.

    38. 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
    39. Re:Ever notice . . . by koekepeer · · Score: 1

      "Why are we even using HTML still?"

      very simple. because it's there, it worked well enough to push the web as far as it has gone, and it's hard to even imagine a workstation that does *not* have a webbrowser.

    40. Re:Ever notice . . . by Jasin+Natael · · Score: 1

      I have one, but not in so many words. Here's what you do:

      1. Output a table, with one input (or select) in each cell. Give each input a unique id of the form "prefix-column-row".
      2. Set the onchange event for each input to one function that takes a control as the argument and does the following:
        • Split the ID:
          var parts = control.id.split(/-/);
        • Send the row,column,value as GET arguments:
          AJAXGet(url, 'c='+parts[1]+'&r='+parts[2]+'&v='+control.value);
      3. Set up your CSS so the inputs are unbordered and grow to fill their cell.
      4. Add some code to indicate that a control is dirty (I use a css class called 'dirty' that sets a background image), and then clear the control when the server response comes in.
      5. Sorry I don't have a working example to show off, all my current projects are kind of locked down, but you can get the idea. Lots of discrete 'save' calls to the database, each field has a visual indication of whether it's saved or not, and there's minimal addition to the markup: just an ID and an onchange handler.

        --Jasin Natael
      --
      True science means that when you re-evaluate the evidence, you re-evaluate your faith.
    41. Re:Ever notice . . . by Professor_UNIX · · Score: 1
      Let alone potential incompatibilities for Java code (I vaguely remember something about a MS JVM), applets just aren't usable. They're just too dang slow.

      That's a fallacy caused by poor coding. I've run Java code that ran nearly as fast as compiled C executables. As for incompatibilities, that's another fallacy. Sun's JVM version 1.5 is the same JVM on Linux as it is on Windows. The incompatibility you're describing is from a third-party vendor's broken pseudo-Java virtual machine and they got slammed in court for it. Why do you think Windows XP doesn't even include it anymore? If you want Java in Windows they recommend you download Sun's real JVM.

      As to scale to real applications- WTF? Google Maps is more or less the pared down version of Google Earth. It's useful because it scales down usefully on a browser. Google Maps is incredibly useful for small web apps, and isn't going to be replaced by a "real" application any time soon.

      You just contradicted yourself though. The "real" application is Google Earth not Google Maps. There's a reason it uses a compiled program: the AJAX version isn't capable of doing the things they want Google Earth to do. AJAX is a hack... a nifty hack like I said, but it certainly has no place in replacing compiled code apps or even Java. I imagine if you look behind the scenes at Google Maps you'll find a ton of conditional statements to deal with the various browsers' quirky Javascript behavior. That's no way to efficiently code an application and hope to keep it maintainable.

      The only reason it works for Google is they're writing a very targetted single-purpose web site app to display static content (maps). Imagine if you had to do that with your C code.. move all those preprocessor macros up into your actual code and use if/then/else statements instead. It'd be a bloated nightmare.

      So, in summary, it works for Google Maps because what they're doing is simplistic, but people have these grandious ideas of using it to replace office suites or other major compiled applications on your computer and I just don't see it scaling to be able to accomplish that successfully. Anyway, you probably won't see this since my moderator fan will send this down to 0 or -1 in a minute or two.

    42. Re:Ever notice . . . by tacocat · · Score: 1

      I dunno. Probably the same reasons we still drive cars on roads and eat food.

      Questions like this are stupid.

      HTML works great for most of the content on the internet. The only time it doesn't work great is when you are trying to do something highly interactive. But interactivity requires bandwidth and lots of it. No way around it.

      So all you are doing with faddy crap like AJAX is trying to reduce the level of bandwidth you must consume in order to get something dynamic accomplished on a web page. If you had a form that was the web page instead of a part of it then there really wouldn't be any more/less bandwidth to pass back and forth than what was required to get the work done. Even the most minimalistic approaches still require that much bandwidth to be passed.

      The ironic part is that no one is willing to settle for just a simple form on a web page to do anything. It's gots to be more, more, more. I would venture to guess that most of those webpages have unnecessary content being delivered for reasons other than getting the job done (marketing, advertisement, sales touch points).

    43. Re:Ever notice . . . by Anonymous Coward · · Score: 0

      Because the life is not black and white. It's grayscale.

    44. Re:Ever notice . . . by Anonymous Coward · · Score: 0

      In South Korea, deeply nested /. posts are just a fad.

    45. Re:Ever notice . . . by ceejayoz · · Score: 1

      Perhaps, but try saying XMLHTTPRequest ten times fast.

    46. Re:Ever notice . . . by saltydogdesign · · Score: 1

      Yeah, and where's my instant matter teleport? Where's my flying cars? Man, what have developers of technology been doing the last thirty years except sit on their asses?

      --
      // This is not a sig.
    47. Re:Ever notice . . . by qray · · Score: 1

      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.

      I definitely agree there. And I agree that we need a new and better way to define interfaces. Why can't we serve up something like XUL or some other form description language, that allows a more flexible and extensible system for defining forms. Sure, no browser may support it now. But then at some point there wasn't a web browser.

      The bottom line for me is that web development is just so much more painful. And it really shouldn't have to be.

      --

      Q

    48. Re:Ever notice . . . by elrous0 · · Score: 1
      I agree, and I'd also have to disagree.

      -Eric

      --
      SJW: Someone who has run out of real oppression, and has to fake it.
    49. Re:Ever notice . . . by welsh+git · · Score: 1

      STOP CALLING IT 'AJAX' - of all people, I'd expect the slashdotters to get it right -- it's just a javascript function - a useful javascript function, but that's it.

      "AJAX" is some stupid marketing blurb hyped name.

      I'm sure we could come up with other acronyms for other javascript/html/dom functions if we wanted to...

      --
      Sig out of date
    50. Re:Ever notice . . . by elrous0 · · Score: 1
      "youens"? Central PA? (I'm actually from New York, but were Mr. Clean to prod yo' buttock, he would surely do so in the most possessive 2nd person plurality possible.)

      Will yoze guys knock it off? I'm trying to sleep over here!

      -Eric

      --
      SJW: Someone who has run out of real oppression, and has to fake it.
    51. Re:Ever notice . . . by qray · · Score: 1

      No, I'd say what have tool developers been doing for the past 20 years. The IDE we have today isn't much more advanced than the IDE that Borland introduced back in the early 80's. And many people are still mucking with makefiles and such. We're still developing in a flat file world that we should have abandon 10 years ago.

      So yes, we should flying cars and teleports in the development world as restrictions for inovation in software is a lot less than such devices in the real world.
      --
      Q

    52. Re:Ever notice . . . by saltydogdesign · · Score: 1

      So get on with it. If you know so much about it, let's have some solutions. The market awaits.

      --
      // This is not a sig.
    53. Re:Ever notice . . . by the.o.ster.66 · · Score: 1

      ...h0w p30pl3 th4t uze w3ird ch4rs R l4m3?

    54. Re:Ever notice . . . by Anonymous Coward · · Score: 0

      ... how ACs talk shit about peoples user numbers?

    55. Re:Ever notice . . . by Anonymous Coward · · Score: 0

      >"AJAX" is some stupid marketing blurb hyped name.

      Really? And who came up with this blurb, who is marketing it?

      I thought it was just an acronym for Asynchronous JavaScript w/ XML

      Not really "just a function", but a substantially new/different way of architecting a web application, no? A paradigm-shift, if you will. ;-)

    56. Re:Ever notice . . . by budgenator · · Score: 1

      There is a big difference is somebody pushing the envelope realy hard to see when something hits the wall and saying something doesn't scale well. If what you're looking for is a magic-bullet to cure world hunger and global warming AJAX is going to fall short, but if you're looking for is to offer a user sane choises in a drop-down, AJAX is probably a good bet.

      --
      Apocalypse Cancelled, Sorry, No Ticket Refunds
    57. 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.

    58. Re:Ever notice . . . by petermgreen · · Score: 1

      The IDE we have today isn't much more advanced than the IDE that Borland introduced back in the early 80's
      hmm i'd disagree there

      there are 3 types of ides i've come accross

      1: simple IDEs (e.g. tp7 and tpw): compilation error location and sometimes debugging built in but largely simple text editors from the point of view of coding work.
      2: gui orientated IDEs (e.g. vb and delphi): good for making guis fast but don't really give you much help with anything else.
      3: advanced IDEs (e.g eclipse): theese actually do a lot of the coding drudgework (which java has a LOT of) for you, make something a field because you are lazy and/or hate writing a method call just to set/get something but now want it as getter/setter methods (because thats coding standards or because you need to add a sideeffect)? no problem! wan't to use getters/setters from the start but don't wan't to write them by hand? again no problem! wan't to rename something without the false matches a simple search and replace gives? again no problem!

      --
      note: i'm known as plugwash most places but i screwd up registering that here somehow in the past and now can't register
    59. Re:Ever notice . . . by Ctrl-Z · · Score: 1

      ... Try saying AJAX ten times fast

      --
      www.timcoleman.com is a total waste of your time. Never go there.
    60. Re:Ever notice . . . by m50d · · Score: 1
      Computer games shouldn't exist. They're an attempt to shoehorn computers into something very different to what they were designed for--word processing and spreadsheets.

      On the contrary, the modern computer has been almost entirely for games. AGP is the most immediate example, but faster processors, larger memory - basically everything that differentiates your current PC from the one you had back when it was just for word processing and spreadsheets - has been driven almost entirely by games.

      I don't get Slashdot's irrational fear of AJAX (maybe it's the fact Slashdot itself is stuck in 1998 design-wise). If we threw out everything that's doing something different from "what it was designed for," there wouldn't be any progress in this world.

      No, as soon as you see something useful that can be done by using something other than what it was designed for you go back and design something to do the new thing.But go on calling it a "fad," people. The fact is, a lot of standards today were called fads when they first got popular.

      Damn straight. I'm using the push internet on my network computer right now. Oh, wait.

      The cat's out of the bag now. It's stupid NOT to use AJAX. For instance, my site's login form can just pop up an "invalid login" message instead of reloading an entire page just to display an error message. It's nice for the user to have instant feedback, and it's nice for me not to waste bandwidth reloading entire pages for minor page updates.

      Why not do the login via http authentication, where if it's wrong they just get a 403. No page loading at all required.

      --
      I am trolling
    61. Re:Ever notice . . . by m50d · · Score: 1
      We have a standard way of doing applications over the internet,

      We have a number of ways, as this new one certainly shows. None of them are popular enough to be called standard.

      it's designed for doing applications over the internet,

      Erm, people were still using the web for normal webpages last time I checked. Http is designed either for documents or, these days, perhaps as a general purpose protocol. It's not designed for web applications.

      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.

      The web doesn't need to be that successful. Noone complains that email isn't conquering the world. Ecommerce could have worked a lot better if there was a dedicated protocol for it - it's still harder to order something off amazon than to install a program, and every time I start using a new site I have to learn a new layout, new system.Any site that takes input from the user and does something with it is a web application.Only if you think anything that takes input from a user is an application. The web is a document-oriented system, and document-oriented things work well on the web. Those which aren't are generally kludgy

      Slashdot is a web application.

      And would be much better done by a usenet-style protocol. (Straight nntp wouldn't work, no, you need the moderation system. But improving nntp would be better than forcing http to make it work).

      --
      I am trolling
    62. Re:Ever notice . . . by qray · · Score: 1

      Once I find someone to fun my efforts or win the lottery, I would love to. Until then, I'm trapped.
      --
      Q

    63. Re:Ever notice . . . by qray · · Score: 1

      Those three options are still just variations on a theme. They are all still flat file based. And forcing us to describe and navigate our system in a flat file mentality. Some of the IDE's have browsers and such to ease this pain, but the most I've seen are fairly clumbsy to use and don't hold a lot of context. We need something that natively understands the system we're designing and doesn't create some map that we then have to navigate to get what we want. I want to be able jump quickly to a function that's being called and then return back, and visualize the relationships between functions, objects, variables, etc.

      Visual Age is pretty close, though I think the navigation really needs to be beefed up. Most of the available perspectives of Eclipse are file based, though I suspect you could build a perspective that breaks out of the flat file mold. That might provide an interesting place to start, assuming that the core IDE doesn't assume you're working with flat files.
      --
      Q

    64. Re:Ever notice . . . by Eivind+Eklund · · Score: 1
      Installing a program may be easier for you; in my user role, it's definately not easier for me to find, install, start, and learn a new program than to click on a web link. As a programmer, it's also harder than writing the code for a web site, especially when considering the cross platform support issues.

      Let's look at the kind of apps we (my partner and I) deliver over the web for clients:

      • Discussion board. Just like Slashdot would need extensions for moderation, we would need other special NNTP extensions, plus the ability to show ads.
      • Ecommerce. Presentation and special partner support was crucial; this would require a special program to view the code.
      • Search system for cars/mobile homes/MCs/etc. Showing the structured search pages is layout-sensitive (to make it user friendly); this would require some special program, not a protocol. Same with the upload support that's there.
      • Administration tools for all of the above
      • Remotely administered PDF generation for ads print publication (we generate whole magazines)
      • Content management systems for the documents that *are* on the web
      • ...

      There's probably hundredes of implementations of most of the above, all with small differences, with the small differences creating different user experiences, fitting for slightly different audiences and tasks. Making the programs run from the web instead of through special protocols with programs installed on each machine *works better*. And making them work through a limited interface (the HTML interface) makes them close enough for people to figure out. With the interface weirdness many people are able to do through the web, no way I'd want them to have more capabilities at their disposal ;)

      Eivind.

      --
      Doubting the existence of evolution is like doubting the existence of China: It just shows that you're uninformed.
    65. Re:Ever notice . . . by m50d · · Score: 1
      Installing a program may be easier for you; in my user role, it's definately not easier for me to find, install, start, and learn a new program than to click on a web link.

      You misunderstand me. I'm saying for me as a user it's easier for me to do all that than to buy something from an ecommerce site. And it shouldn't be.

      There's probably hundredes of implementations of most of the above, all with small differences, with the small differences creating different user experiences, fitting for slightly different audiences and tasks.

      I feel it's less that they're tailored for their audiences and just that different people wrote them because there wasn't a standard one. The differences between, say, amazon and newegg's interfaces don't help me with what I need when ordering books or hardware, they just confuse me and give me more to learn.

      Making the programs run from the web instead of through special protocols with programs installed on each machine *works better*. And making them work through a limited interface (the HTML interface) makes them close enough for people to figure out. With the interface weirdness many people are able to do through the web, no way I'd want them to have more capabilities at their disposal ;)

      There's far more variability in web applications than between normal applications done with the same toolkit. Give developers a standard set of widgets, yes with an "escape hatch" for when it's absolutely necessary to do something not covered by the set, make them part of the protocol, and then let the client represent them how they want, according to personal preference. That would make my ecommerce experience a lot nicer.

      --
      I am trolling
    66. Re:Ever notice . . . by heinousjay · · Score: 1

      Really? And who came up with this blurb, who is marketing it?

      Adaptive Path.

      Not really "just a function", but a substantially new/different way of architecting a web application, no? A paradigm-shift, if you will. ;-)

      I won't. It's not even close to new - Microsoft pioneered the technique back in the 90s for Outlook Web Access. It isn't just a function, that is true. It's just an object. Has a few interesting methods and properties. In retrospect, it's so damn obvious it's a wonder netscape didn't include it in their first iteration of Javascript.

      --
      Slashdot - where whining about luck is the new way to make the world you want.
    67. Re:Ever notice . . . by Techn0tic · · Score: 1

      Web applications are an ideal solution for largescale rollouts and software management within an organisation. The company that I used to work for regularly chose to build web applications as the user base was over 8000 people spread over 65 sites across Europe. The only requirements for running a web app was a compatible web-browser and a connection to the intranet. Any other type of deployment would require the tech support staff in every site to install the application on every PC, everytime there was an update.

    68. Re:Ever notice . . . by m50d · · Score: 1
      The only requirements for running a web app was a compatible web-browser and a connection to the intranet.

      And the only requirements for running applications done the way I'm suggesting are a client program and a connection to the network.

      Any other type of deployment would require the tech support staff in every site to install the application on every PC, everytime there was an update.

      That's completely false. If you had deployed it via X11, for example, you would be in pretty much the same situation as you are now. I'm not saying X11 is a perfect solution (the way anyone on the network can sniff your session makes it no good for many applications) but something akin to it would be a better way of doing remote applications than over the web.

      --
      I am trolling
    69. Re:Ever notice . . . by Techn0tic · · Score: 1

      Good point well made, but the problem we faced was a huge range of platforms both in terms of OS and hardware spec. We're talking Mac, Unix, Windows 98,NT,2K,XP. Some sites running citrix clients, some connected to the network via VPN. As we had a development team of 2 people, we went with web applications.

      However, I do agree to a certain extent with your point but I think that in some circumstances, the current technology available makes web applications a viable solution. HTML, AJAX and everything else, has evolved to where it is because things that work stuck and things that didn't got left behind. Anything new will have to go through that same 'survival of the fittest' trial and unless it had significant benefits, I think most people would stick to the tireless job of evolving what they already know to fit their requirements.

    70. Re:Ever notice . . . by m50d · · Score: 1
      However, I do agree to a certain extent with your point but I think that in some circumstances, the current technology available makes web applications a viable solution. HTML, AJAX and everything else, has evolved to where it is because things that work stuck and things that didn't got left behind. Anything new will have to go through that same 'survival of the fittest' trial and unless it had significant benefits, I think most people would stick to the tireless job of evolving what they already know to fit their requirements.

      Point, hmm. It does work, I can't deny that. It could work so much better being redesigned from a "fresh start", but the effort it would take to do that isn't worth it for anyone. But when you heap adaptation on adaptation you'll end up with a whole load of cruft. If people switched now it would be worth it in the long run - but people don't think like that. It's a big challenge to try and replace an established technology, and I'm not sure how I'd accomplish it.

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

    Call yourself one.

    1. Re:How to become an AJAX Expert by AndroidCat · · Score: 1

      Nah. The job listings call for at least 5 years of AJAX experience for experts.

      --
      One line blog. I hear that they're called Twitters now.
    2. Re:How to become an AJAX Expert by Anonymous Coward · · Score: 0

      My 5 years of AJAX experience go very well with my 20 years of Java experience.

    3. Re:How to become an AJAX Expert by Anonymous Coward · · Score: 0

      hehehe

      I laughed and it wasn't even a nasty troll.

    4. Re:How to become an AJAX Expert by NutscrapeSucks · · Score: 1

      This was pretty widely used in Microsoft shops 5 years ago, so that's hardly a ridiclous requirement.

      --
      Whenever I hear the word 'Innovation', I reach for my pistol.
    5. Re:How to become an AJAX Expert by geekoid · · Score: 1

      Leats right,
      5 years Ajax,
      10 Years Java,
      10 years C,
      10 years C++,
      10 years VB,
      10 years SQL

      Woohoo! 55 years programing experience.

      --
      The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
    6. Re:How to become an AJAX Expert by Professor_UNIX · · Score: 1
      Woohoo! 55 years programing experience.

      All for a $45,000 a year salary offer. Don't forget you need to be their "network guy" and have a CCNP and MCSE with at least 6 years of Windows 2000 Server experience and 3 years of Windows 2003 Server experience.

    7. Re:How to become an AJAX Expert by Jasperke · · Score: 1

      Hell no!
      I'm using AJAX already for ages, I'm a _real_ AJAX Expert...

      Hmmm oke, I guess you're right...

  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. Forget Ajax by Gryle · · Score: 1, Funny

    Pinesol has waaaaay more cleaning power

    --
    Only two things are infinite, the universe and human stupidity, and I'm not entirely sure about the universe - Einstein
  5. How about a new language by zymano · · Score: 1, Interesting

    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.

    What about Python or something new just for interfaces ? Something like Macromedia Flash ?

    1. Re:How about a new language by ceejayoz · · Score: 1

      Client-side Python? How long, exactly, should we wait for Internet Explorer to add support for that?

      Anyone who finds basic AJAX "too complex" needs to try the Prototype library.

    2. Re:How about a new language by mr_stinky_britches · · Score: 1

      Or, why not a completely new language (as the parent originally stated)? I kind of like that idea ;)

      I can't say anything about Python, but I can tell you RIGHT NOW that "Macromedia Flash" (is it now considered a language?) is not suitable for or geared towards making the best use of my time.

      --
      Censorship is obscene. Patriotism is bigotry. Faith is a vice. Slashdot 2.0 sucks.
    3. 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.

    4. Re:How about a new language by Anonymous Coward · · Score: 0

      If you really want you can "invent a new language" and write a compiler to compile it into the "complex hybrid code" that runs on current browsers.

    5. 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! :)

    6. Re:How about a new language by shobadobs · · Score: 1

      Seriously, AJAX is not complex. Maybe it is for people who can only copy and paste Javascript from other web pages. But the concept of AJAX is simple, Javascript is one of the most elegant programming languages out there. I can see why one might want to adapt Python, though, for its batteries.

    7. 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!
    8. Re:How about a new language by adrianmonk · · Score: 1
      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.

      That's what everyone said about object-oriented programming in about 1990. They said it was too much work, or that it was nothing really all that new, and you could do the same stuff in C if you wanted to.

      To some extent they were right, but I think in some cases, that was just a way of saying "it's new and I don't want to learn it".

    9. Re:How about a new language by johnMG · · Score: 1

      I can see why one might want to adapt Python, though, for its batteries.

      Yeah, Python comes with some nice Alkaline C cells. Perl OTOH comes with those big deep-cycle bruisers like you find in fork lifts.

    10. Re:How about a new language by Anonymous Coward · · Score: 0

      How about same language - different platform? OpenLaszlo - XML based language + Javascript, compiles to SWF (Flash), much faster/easier development than typical Ajax frameworks and libraries. It does require Flash, but 90%+ of browsers support it already.

      http://openlaszlo.org/

    11. Re:How about a new language by Lars83 · · Score: 1, Insightful

      Websites done in Flash make my ban list.

    12. 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?

    13. Re:How about a new language by AOL-CD-Man · · Score: 1

      The Prototype library? I would, if that website was available.

    14. Re:How about a new language by zymano · · Score: 1

      I knew somebody would be working on some alternative.

    15. Re:How about a new language by qray · · Score: 1

      The language is the least of the problems. There's plenty of languages that would suffice. What is needed is something to replace the mess that is HTML and CSS. Either find something that fits both application forms and document plubishing or provide two separate technologies that cater to each.

      I guess I'm not real optimistic about the ability of the web standards committee to come up with such a solution.
      --
      Q

    16. Re:How about a new language by Anonymous Coward · · Score: 0

      What's wrong with XHTML2? (seriously, its use of xforms impresses me, and it's much better for document publishing than HTML 4.01/XHTML 1.0 (or 1.1 for that matter).

    17. Re:How about a new language by ceejayoz · · Score: 1

      Works here, but try the first link if the particletree.com (second) link still isn't working on your end.

    18. Re:How about a new language by Anonymous Coward · · Score: 0

      The next generation of flash, ActionScript 3.0 and Flex 2.0 MXML is a far more 'tidy' approach to 'AJAX' then using a hybrid of JS/DOM/HTML...

      Its not so much that the Flash solution can achieve more (thought in making graphical interfaces it lays waste to JS/DHTML)... it is that the technology is written with the methodology in mind, so is more structured and easier to maintain.

      Ofcourse AS3.0 and Flex 2.0 are still in Beta (open Alpha, invitation Beta)... but they will still come to the mainstream long before a AJAX rehash of HTML/JS/DOM.

    19. Re:How about a new language by paulbiz · · Score: 1

      There is an experimental JavaScript 2.0 proposal maintained by Waldemar Horwat. Last updated June 2003.

    20. 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
    21. Re:How about a new language by d1g1t4l · · Score: 1

      Actually, I don't need Javascript 2!! All I wish is Microsoft and the rest of the world using only one version of javascript!! Writing code that supports both is P.I.T.A.

    22. Re:How about a new language by Anonymous Coward · · Score: 0

      I think the problem is that the web's so entrenched in peoples' lives now as it is that any new idea has to have an element of backwards compatibility whereas what the web really needs is to be shutdown and over-hauled.

    23. Re:How about a new language by Anonymous Coward · · Score: 0
      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?
      Hey, my old horse already has like 2,000 miles on it and is being pushed into its grave as we speak. I think a new horse is in order.
    24. 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.

    25. Re:How about a new language by shmlco · · Score: 1
      "Flash has one big advantage over Ajax.... it bypasses browser compatibility issues entirely."

      This plugin requires a newer version of Flash than is available on your computer. Would you like to download it? (1.3MB)

      --
      Any sect, cult, or religion will legislate its creed into law if it acquires the political power to do so.
    26. Re:How about a new language by m50d · · Score: 1

      Python is the easiest true programming language to learn ever, IME. Writing it is a joy, I can write code and on a good day have it work first time. I can't wait until the mozilla python dom interface gets finished.

      --
      I am trolling
    27. Re:How about a new language by m50d · · Score: 1

      There is a project to get client-side python going in firefox. Not sure how far along it is yet. Here's hoping it takes off.

      --
      I am trolling
    28. Re:How about a new language by juiceCake · · Score: 1

      Much smaller than a browser update download isn't it. Oh the humanity, you have to download something over the Internet. Are you still using 1.0 browser clients? Maybe you get the updates shipped to you directly on CD?

    29. Re:How about a new language by mcvos · · Score: 1

      It can actually save quite a lot of bandwidth, since you only have to send the page and every bit of data once, whereas the traditional approach would require the server to send a complete page every time the user does something.

    30. Re:How about a new language by shmlco · · Score: 1
      "Are you still using 1.0 browser clients? Maybe you get the updates shipped to you directly on CD?"

      Oh no, thanks. I just got a brand new computer with a new web thingy and everything.

      But if you have to download a software upgrade before you can view a page's web content, it sort of belies the whole "bypasses web browser compatibility issues entirely" comment, doesn't it?

      --
      Any sect, cult, or religion will legislate its creed into law if it acquires the political power to do so.
    31. Re:How about a new language by juiceCake · · Score: 1

      Yes it does. As is seeing the intended presentation of web site that uses such things as CSS if you don't have a CSS capable browser.

  6. 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 Mozk · · Score: 1

      VERY, VERY NICE.

      I've been tired of having to use AIM Express, a Java client, on computers that do not have a desktop AIM client. It gets even worse when Java is not installed.

      This website is amazing. Even the GUI looks pretty. :)

      --
      No existe.
    3. 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.
    4. 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 ;)

    5. 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
    6. 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
    7. Re:Ajax in action by Bogtha · · Score: 1

      Bookmarks not working is merely a symptom of a larger problem - the lack of addressability. This also causes other problems. There might not be many people who want to bookmark one of their emails, but I'm sure there's a lot more people who would like to open an email in a new tab every once in a while.

      --
      Bogtha Bogtha Bogtha
    8. Re:Ajax in action by Anonymous Coward · · Score: 0

      Amen! Mod parent up! Most of the complaints about AJAX and usability stem from examples of misuse, not from a fatal flaw inherent in AJAX itself.

      IMO one of the finer points of using AJAX is knowing when not to use it...

    9. Re:Ajax in action by MasterPi · · Score: 1

      Umm.. ctrl+click link for email. Not to mention the cool little "put this in a new window" buttons for all of the compose/quick-reply boxes. It even keeps the text you were working on.

      Btw ctrl+anything works for about any tab related thing. Ctrl+Tab switches, ctrl+enter in googlebar does new tab, etc. Shift usually modifies whether the tab focuses right away or not as well. Just in case anyone didn't know.

      --
      ( I
    10. Re:Ajax in action by Ride+Jib · · Score: 1

      You really think I'm going to put my username and password in on that site? You're crazy.

    11. 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
    12. 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.

    13. Re:Ajax in action by jessu · · Score: 1

      Another nice example can be found here FeedTV

    14. Re:Ajax in action by teslatug · · Score: 1

      No shit, some weird site asks for your credentials without even explaining anything? You've gotta built some credibility and amass enough money to be worried about getting sued, before you'll become trusted.

    15. Re:Ajax in action by gaveawaymyname · · Score: 1
      From the Meebo Blog:


      Did you have any other questions?
    16. Re:Ajax in action by nick+this · · Score: 1

      So that's Ajax, is it? Strange... looked like phishing to me. :)

      Remind me again why I'd want to put my im passwords into a random web page?

    17. Re:Ajax in action by ion_ · · Score: 1

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

      All AJAX developers should take a look at this article: AJAX: How to handle bookmarks and back buttons.

    18. Re:Ajax in action by Anonymous Coward · · Score: 0
      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.


      Wow, thank you for that. I did a whole we app (a scientific survey) about a year ago having only a nebulous idea of the distinction (since I couldn't find a good explanation anywhere), but this makes it quite clear.
    19. Re:Ajax in action by Flunitrazepam · · Score: 1

      a nice example of retarded if you enter your passwords into a random website

      --
      1) Your analysis is based on bad assumptions so your result is way off. 2) You're a sick bastard for fucking a horse.
    20. Re:Ajax in action by Tim+C · · Score: 1

      The technical term is that GETs are idempotent - "acting as if only used once, even when used multiple times" (from the jargon file http://catb.org/~esr/jargon/html/I/idempotent.html - although I disagree with the comment about C header files, I've never heard the term used in connection with them...).

      GETs (according to the spec) aren't supposed to change anything (significant) on the server, just retrieve information, and so are safe to bookmark, refresh, etc.

      POSTs on the other hand are potentially more "dangerous", which is why your browser warns you about resubmitting them - they're designed to be used for things that cause changes, and so should only be repeated with care. Examples being submitting orders in ecommerce sites, deleting content or changing its live/visible status in a content management system, etc.

      You'd be surprised how many people I come across in the web industry who don't know the difference. It's one of the interview questions I use; if you get it wrong, you're not likely to get the job (I forgive not knowing the word "idempotent" though).

    21. Re:Ajax in action by Anonymous Coward · · Score: 0

      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.

      I don't see this as a competence issue, although there are many examples of AJAX being used solely for its buzzword-bingo mojo. The real issue, which pertains even when AJAX is used correctly and for the right reasons, is that the 'broken' bits you mention (addressibility, bookmarks, etc) are features of web content, not features of web apps. In an application, especially one that tracks state, bookmarks can break the logic flow.

      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?

    22. 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
    23. Re:Ajax in action by KilobyteKnight · · Score: 1
      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 response object is handled through Javascript and it's what allows you to update the page without reloading. If you wanted to use a "real link" you would be forced to load a new page, completly negating the benefit of Ajax.
      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?

      You should understand that a web application is not a web page and there is a paradigm shift. There may be some instances where maintaining "web page" expectations makes sense, but in many applications it doesn't. Some examples: Bookmarking a sent email in gmail makes no sense. Nor does hitting the back button to clear a cell in an interactive spreadsheet. Saving state across sessions on a half filled in form probably would not be useful.

      Just about every complaint I've seen about Ajax so far seems to be geared at "It doesn't act like a web page". Ajax is best used for web applications. Of course it doesn't act like a web page... that's why it's so useful.
      --
      When will Windows be ready for the desktop?
    24. Re:Ajax in action by Bogtha · · Score: 1

      The response object is handled through Javascript and it's what allows you to update the page without reloading. If you wanted to use a "real link" you would be forced to load a new page, completly negating the benefit of Ajax.

      This is misinformed nonsense. It's dead simple to keep the benefit of Ajax without sacrificing backwards compatibility in this case. You use a proper link with a proper URI that works without Javascript, then you add an event handler for when it is activated that prevents the default behaviour from occurring iff the Ajax is executed.

      This means that it works when Javascript is not available, it works when Javascript is available but the specific Ajax technologies you require aren't, it works when Ajax is possible but shouldn't be executed, such as when opening links in new windows/tabs, and it works when Ajax is possible and should be executed. The boneheaded code you seem to think is required fails in three of those four scenarios, the code I suggest works in all four, including the one you claim it doesn't.

      You should understand that a web application is not a web page and there is a paradigm shift.

      The words "paradigm shift" don't excuse broken code and aren't a sole justification for taking away features. Sure, web pages and web applications are different things, and what is true for one is not necessarily true for the other. But most things are.

      Bookmarking a sent email in gmail makes no sense.

      Why not? I send an email, I want to refer to it later, so I bookmark it. Don't forget, we are talking about everything that uses addresses here - are you saying that opening things in new windows/tabs is something that can't possibly apply to web applications? Are you saying that linking to things inside a web application is always a stupid thing to do?

      Nor does hitting the back button to clear a cell in an interactive spreadsheet. Saving state across sessions on a half filled in form probably would not be useful.

      You are misinterpreting what I am saying. I'm not saying that each and every thing that could possibly have an address must be addressable. I'm saying that some things have traditionally been addressable, that addressing them is useful, and that you shouldn't throw that away and break the features that rely on it simply because you hire incompetent developers and have a "but it's a new paradigm" excuse lined up.

      --
      Bogtha Bogtha Bogtha
    25. Re:Ajax in action by Anonymous Coward · · Score: 0

      I'm sorry? How is this a useful page? It doesn't work in Opera, for no apparent reason other than 'we said so.' Must be made by the same clowns who wrote WebCT. It also doesn't work in Camino without serious graphic bugs. I have a phantom scrollbar hovering over my Camino window as we speak. It's not a window redrawing bug because it remains after window resizing and dragging an IM window over the scrollbar. I'm sure the typical response to my complaints would be, 'Well, your browser sucks, use real Firefox, it is teh l337.' I don't like Firefox, I keep Camino around for testing purposes, and I should be able to use whatever browser I please. Yes sir, this is progress, right here. The brink of a new era of untold web prosperity.

      Give me a break.

    26. Re:Ajax in action by Fuzzie+Viking · · Score: 1

      I understand (and fully support) your desire for backward compatibility. But there are cases when you can't use on "onclick" handler with a valid URL in the href attribute. Try passing "this" into a function in the onclick handler to see what I mean. One of my "bag of tricks" to keep JS out of pages is to add attributes to DOM elements like "some_kind_of_id='42'" then pass the element in "onclick='letsDoSomethingWithThatId(this)'". The DOM is broken in this regard as you end up with a reference to the URL and not the element. Major PITA. So I use and and anything else that is handy to submit my clicks. Again, you are very right. Just not in all cases.

      --
      I am Ergo the magnificent. Short in power, tall in stature, narrow of vision and wide of purpose.
    27. Re:Ajax in action by Anonymous Coward · · Score: 0

      create a fscking gmail bogus account just to try the site, you don't need to use your real account.

      damn...

    28. Re:Ajax in action by jschrod · · Score: 1
      Bookmarking a sent email in gmail makes no sense.
      Of course it does from the user perspective -- I want to remember that email and create a bookmark for it.
      Nor does hitting the back button to clear a cell in an interactive spreadsheet.
      There are dozens of usability studies that show that people like the back button exactly for that reason: For them, it means undo. Proper back button functionality encourages an exploration-based approach to computer usage, and that would be a Good Thing(tm) -- if it would work.
      --

      Joachim

      People don't write Manifestos any more -- what's going on in this world? [Frank Zappa]

    29. Re:Ajax in action by Bogtha · · Score: 1

      That's not a problem unless you are using the old-fashioned style of Javascript where you have to manually assign handlers in the HTML. What's wrong with using closures?

      --
      Bogtha Bogtha Bogtha
    30. Re:Ajax in action by NefariousAryq · · Score: 1

      Color me impressed! THats all I gotta say about that one. Wow. --Eric

    31. Re:Ajax in action by KilobyteKnight · · Score: 1
      Bookmarking a sent email in gmail makes no sense.
      Of course it does from the user perspective -- I want to remember that email and create a bookmark for it.

      And how is cluttering up the bookmarks, and later searching through them, better than looking in the sent mail folder? Gmail even has a better way to organize and look for it. I'm going to assume you've tried to organize your bookmarks at least once. Seriously, which is easier?
      There are dozens of usability studies that show that people like the back button exactly for that reason: For them, it means undo.
      I don't know of anyone who expects the back button to revert to the previous state the last thing you entered in a form field. Web browsers have NEVER worked that way.

      Care to link to one of those studies?
      --
      When will Windows be ready for the desktop?
    32. Re:Ajax in action by jschrod · · Score: 1
      Your view on bookmarks is rather limited, IMHO. Bookmarks create a view and may be very well used in GUIs. Refer to Paul T. Graunke, Shriram Krishnamurthi: Advanced control flows for flexible graphical user interfaces: or, growing GUIs on trees or, bookmarking GUIs. Proceedings of the 24th International Conference on Software Engineering, May 2002, ACM Press.

      Concerning studies on the back button:

      Kunz, T. and Seuren, M. F. 1997. Fast detection of communication patterns in distributed executions. In Proceedings of the 1997 Conference of the Centre For Advanced Studies on Collaborative Research (Toronto, Ontario, Canada, November 10 - 13, 1997). J. H. Johnson, Ed. IBM Centre for Advanced Studies Conference. IBM Press, 12.

      Golovchinsky, G. 2002. Going back in Hypertext. In Proceedings of the Thirteenth ACM Conference on Hypertext and Hypermedia (College Park, Maryland, USA, June 11 - 15, 2002). HYPERTEXT '02. ACM Press, New York, NY, 82-83. DOI= http://doi.acm.org/10.1145/513338.513363

      Utting, K. and Yankelovich, N. 1989. Context and orientation in hypermedia networks. ACM Trans. Inf. Syst. 7, 1 (Jan. 1989), 58-84. DOI= http://doi.acm.org/10.1145/64789.64992

      Sun, C. 2002. Undo as concurrent inverse in group editors. ACM Trans. Comput.-Hum. Interact. 9, 4 (Dec. 2002), 309-361. DOI= http://doi.acm.org/10.1145/586081.586085

      Shubin, H. and Meehan, M. M. 1997. Navigation in Web applications. interactions 4, 6 (Nov. 1997), 13-17. DOI= http://doi.acm.org/10.1145/267505.267508

      Milic-Frayling, N., Jones, R., Rodden, K., Smyth, G., Blackwell, A., and Sommerer, R. 2004. Smartback: supporting users in back navigation. In Proceedings of the 13th international Conference on World Wide Web (New York, NY, USA, May 17 - 20, 2004). WWW '04. ACM Press, New York, NY, 63-71. DOI= http://doi.acm.org/10.1145/988672.988682

      And these are just the first result from a 5-minutes search in ACM's digital library. I can't even remember how often I have read the same study results year after year in many proceedings. You are an ACM member and can access those articles, aren't you? Most professionals that work in HCI are, after all.

      In case you aren't: Try Google for non-scientific opinions that corroborate my statement: http://www.google.com/search?q=back+button+web+bro wser+undo

      --

      Joachim

      People don't write Manifestos any more -- what's going on in this world? [Frank Zappa]

  7. The challenge... by Chris+Bradshaw · · Score: 0, Redundant
    The challenge with Ajax Sites... Keeping them dry. Everyone knows Ajax turns blue when it gets wet.

    Har-de-Har

    --
    Get your Windows Malicious Software Removal Tool Here for FREE! - http://fedora.redhat.com
  8. 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.

  9. 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.

    1. Re:Why AJAX matters by shobadobs · · Score: 1

      It's like JavaScript.

      No, AJAX is Javascript.

    2. Re:Why AJAX matters by ciroknight · · Score: 1

      No, Ajax is an oven cleaner, and AJAX is Asychronous Javascript And eXtensible markup, even though the latter part of that definition goes away when you realize that there are at least 3 other days of getting data back and forth to/from the server that don't involve XML or the XMLHTTP object.

      So, AJAX has Javascript in it, but is not javascript. My computer plays games but that doesn't make it a gaming machine.

      --
      "Victory means exit strategy, and it's important for the President to explain to us what the exit strategy is." G.W.Bush
    3. Re:Why AJAX matters by AeroIllini · · Score: 1

      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.

      I'm actually in the middle of doing the same thing, but I'm very new to AJAX. Any chance you would be willing to share your code with me?

      --
      For security, the MD5 hash of this message and sig is 09f911029d74e35bd84156c5635688c0.
    4. Re:Why AJAX matters by Tim+C · · Score: 1

      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.

      And then the user switches off Javascript and sends all sorts of illegal crap to the application.

      Performing form validation on the client is nice, but cannot replace server-side validation even in the simplest case. You can still do it, sure, but it doesn't mean you can stop doing server-side validation. The application has to protect itself, and certainly can't trust clients.

      AJAX is a tool to be used when necessary.

      Agreed. I see so many comments here either lauding AJAX as though it were the second coming, or trashing it like it was the Anti-Christ. Guys, it's a tool, and like any other it has strengths and weaknesses. Use it when it's appropriate, don't when it isn't.

    5. Re:Why AJAX matters by kuzb · · Score: 1

      It's not 'like' Javascript at all. It *is* javascript. The XMLHTTPRequest object to be exact.

      --
      BeauHD. Worst editor since kdawson.
    6. Re:Why AJAX matters by bennomatic · · Score: 1
      > So, AJAX has Javascript in it, but is not javascript. My computer plays games but that doesn't make it a gaming machine.

      Actually, if it can run games (you're the one who actually plays them), it's arguably a gaming machine. If you use it to crunch numbers, it is a number crunching machine. Your computer can be many things, based on what you use it for.

      A better argument, semantically speaking, would have been, "My computer runs game software, but that does not make it a game."

      But I know what you meant. I'm just tired and argumentative and probably shouldn't post this...

      --
      The CB App. What's your 20?
    7. Re:Why AJAX matters by m50d · · Score: 1

      The mapquest one annoys me far less since it actually appears in my browser. Your fancy movability stuff is no use when it means I can't look at your map. Scrolling around is perfectly usable, there's a reason image viewers have scrollbars even though you can drag the image around.

      --
      I am trolling
    8. Re:Why AJAX matters by Geoffreyerffoeg · · Score: 1

      No, it's like JavaScript. That's like saying that humans "are" mammals in a discussion about evolution. I don't care what its technical classification is; I care about what sort of step it is in advancing the Web (or species, as the case may be).

    9. Re:Why AJAX matters by Geoffreyerffoeg · · Score: 1

      Sure, if you can catch my server when it's on (approx 10 AM - 11 PM Central): geoffrey.homeip.net:8080. /ajaxchat is the front-end. It's a chat program that also implements LaTeX formulas via artofproblemsolving.com (try sending the message $c^2 = a^2 + b^2 - 2ab \cos \theta$ to yourself).

      Source: /ajaxchat_put.phps for inserting to the database one message, /ajaxchat_get.phps for retrieving all messages from a user. Uses a MySQL database CREATE TABLE test.chat (user TEXT, message TEXT). And, of course, ajaxchat(.html) as the front-end.

      By the way, it doesn't quite work in Internet Explorer. I'm still working on that. Works fine in Mozilla and in Firefox.

      Sorry, no hyperlink so the teeming Slashdot hordes don't pwn my desktop computer. If enough people find this useful I may clean it up and move it to a better server.

      As far as documentation: the "check for messages" checkbox polls the server about once per second; I haven't figured out a clean way for the script to just wait for the table to have something. Once you click send, it will wait for the message to be sent before clearing the box. Any message with a $ character is sent through LaTeX.

  10. When is AJAX appropriate? by Shimmer · · Score: 0, Troll

    Correct Answer: When you're building a web site that will have thousands or millions of users and you need maximum polish and usability to keep them.

    Incorrect Answer: For the 99.999% of web sites that don't meet the above criteria.

    --
    The most rabid believers in American Exceptionalism are the exact same people whose policies are destroying it.
    1. Re:When is AJAX appropriate? by Xugumad · · Score: 1

      You forgot "...and asynchronous updates are useful". For example, one of the major applications I work on is a course management system. We could update the display of which students have uploaded work, in real time, but it would only be of use for those courses where submission has a short window (for example, lab-based courses), and even then I'm not convinced it would be used as a feature. Much of the system is like this; rarely updated data, which isn't that helpful to watch change in realtime anyway.

      On the writing to the server side, there are a few more uses (particularly backing up work in progress), but everything I can think of is best only written back when delibrately saved...

    2. 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
    3. Re:When is AJAX appropriate? by ihabawad · · Score: 1

      Amen to that! For most other sites, choosing either plain HTML or a real (Java Web Start or even -- horror -- .Net or native) app is much easier. Mod parent up! :)

    4. 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.
    5. Re:When is AJAX appropriate? by Shimmer · · Score: 1, Informative

      The number of users has nothing to do with it.

      I disagree. Unless you're developing for fun, you need lots of users and/or transactions to justify the extra expense required to implement AJAX.

      You use it when it's appropriate to support a desktopish interaction model.

      Okay, but that's nearly tautological. The problem is to determine when a "desktopish interaction model" is appropriate.

      You don't want to reload the page every time.

      Whether you "want" to reload the page isn't nearly as important as whether you can justify the expense of avoiding reloads. Lots of people "want" to use AJAX. That doesn't make it a good idea.

      -- Brian

      --
      The most rabid believers in American Exceptionalism are the exact same people whose policies are destroying it.
    6. Re:When is AJAX appropriate? by Shimmer · · Score: 1

      Good point. There's no point in polishing a GUI that doesn't need that kind of polish.

      --
      The most rabid believers in American Exceptionalism are the exact same people whose policies are destroying it.
    7. Re:When is AJAX appropriate? by heinousjay · · Score: 1

      I disagree. Unless you're developing for fun, you need lots of users and/or transactions to justify the extra expense required to implement AJAX.

      I don't find this request model (I hate the term AJAX) to be expensive to develop, or to run. Took me a week to make the necessary framework level changes and test them, and now it's a matter of setting a few attributes on my custom tags. (I'm using J2EE and a custom framework right now)

      Okay, but that's nearly tautological. The problem is to determine when a "desktopish interaction model" is appropriate.

      I should have stated this more clearly - it's user driven. My current project is replacing some old desktop apps into an integrated web application. The choices were made before I started, and using this architecture lets me satisfy everyone. Obviously, it's a case by case basis, but if the user is expecting things to be highly interactive, and the project is a web app, then this is the way to go.

      If the project isn't customer driven, then I guess it's really just a personal decision. If the system isn't intended to be highly interactive, why bother?

      Whether you "want" to reload the page isn't nearly as important as whether you can justify the expense of avoiding reloads. Lots of people "want" to use AJAX. That doesn't make it a good idea.

      Again, I disagree with it being expensive. There was some upfront work in my case, but that's over now. Things are actually simpler to develop overall, because individual interactions have very few dependencies now, as opposed to traditional web development.

      In the end, of course people will misapply these technologies. That will be true of everything that will ever be invented, though.

      --
      Slashdot - where whining about luck is the new way to make the world you want.
    8. Re:When is AJAX appropriate? by Shimmer · · Score: 1

      There's no doubt that AJAX is fundamentally more complex than traditional web development. If you've figured out a good way to abstract away this complexity using a framework, good for you -- and maybe you should share it with the rest of the world.

      --
      The most rabid believers in American Exceptionalism are the exact same people whose policies are destroying it.
    9. Re:When is AJAX appropriate? by heinousjay · · Score: 1

      I'm working on that right now - making sure I've got compatible licensing on the dependencies, and documenting. I expect to release it by the end of this month, but that may slide if my project gets hairy. The site will be in my sig when I get it done.

      --
      Slashdot - where whining about luck is the new way to make the world you want.
  11. 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 heinousjay · · Score: 1

      So apparently the thousands (or more?) of us out here doing it right now should stop and wait for not only a standardization effort, but implementations as well?

      I think we'll be just fine dealing with incompatibilities as they arise.

      --
      Slashdot - where whining about luck is the new way to make the world you want.
    2. Re:Good but bad! by Anonymous Coward · · Score: 0

      While there still are problems, in general the level of standardization is between browers higher now than ever before.

    3. 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.

    4. Re:Good but bad! by qray · · Score: 1

      No we don't need to rehash the mess we have. Even if 100% of the browsers supported 100% of all the web standards the problems would still exist. Incompatability isn't a trivial problem, but there are bigger problems out there.
      --
      Q

    5. Re:Good but bad! by geekoid · · Score: 1

      Only 'Web masters' bitch about writing an IF statement.

      --
      The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
    6. Re:Good but bad! by Anonymous Coward · · Score: 0

      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.


      Isn't this an age old problem with any technology that relies on some other underlying technology. The usefullness is only as good as the underlying support. "AJAX" has been around a while, really what it took to be popularized was google deciding that it saw a big enough portion of the market using modern browsers that had decent support for the features they wanted to use. Then when google did it, it made it okay for others to start using those features.

      100% is a fools errand. It is good enough most of the time that mostly everyone can use a feature, technology or whatever. But if you worry about the last 1% or 10% all the time you will never get anything done.

    7. 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... ;-)

  12. powerful approach by johnMG · · Score: 1

    From the article:
    However, Ajax is far more than just a fad; it's a powerful approach to building Web sites and it's not nearly as hard to learn as an entire new language.

    Interestingly enough, my current approach to building Web sites is also powerful. So, I guess I'm already all set. :)

  13. 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.

    1. Re:Best thing since sliced bread! by Anonymous Coward · · Score: 0

      How long have you been doing XmlHttpRequest/Ajax for then? A decade?

    2. Re:Best thing since sliced bread! by NutscrapeSucks · · Score: 1

      We did something similar using a Java Applet and Nutscrape 4 Layers in about 1997 or so. So yeah, almost.

      --
      Whenever I hear the word 'Innovation', I reach for my pistol.
    3. Re:Best thing since sliced bread! by abelikoff · · Score: 1
      That's exactly the point! I have not been "doing XmlHttpRequest/Ajax". I have been building interactive websites using the existing technologies (CGI/JavaScript) and they worked just fine. Of course, they didn't work exactly like desktop applications, but their behavior model was still well understood.

      Aside from "reinventing the wheel" issue, it is also to bee seen yet, whether AJAX fulfills its interactivity promises without making application development unbearably complicated (it is one thing to show a "Hello, AJAX" example; an application with real-life functionality is another matter). Java has been promising similar features for years and so far its success in the field has been mediocre at best.

  14. 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 feNIX77 · · Score: 1

      alert('this isn't using DOM and its javascript!');

    2. 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
    3. Re:Let's Get Picky by Geoffreyerffoeg · · Score: 1

      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...

      Argh, no. You're one of those people who looks at Hungarian notation and thinks it means tacking the variable's declaration type (like "short integer") on it, not its content type (like "area in square meters"), right?

      DHTML is composed of JS and HTML, but DHTML is rewriting objects on an HTML page using JS. It is not HTML; it is not JS. It's the model of dynamic webpage content - accessing objects and messing with them, client-side. There are plenty of HTML pages that use JS. Few of them are actually DHTML. (Using JS to spawn popups is most definitely not DHTML.)

      DOM is not JS. In fact, it's theoretically unrelated. DOM is a programmable way of getting into XML documents using an object-oriented language. It just so happens that the most common XML-like language is HTML, and the most common object-oriented language used with HTML is JS. JavaScript is a Turing-complete language; there are plenty of ways to use it outside of a web page, let alone the DOM.

      And while I'm at it, to respond to the guy somewhere here who said that AJAX was JS: AJAX is something you can do in JS. It is not JS, since it's not a language. It's a methodology.

    4. Re:Let's Get Picky by GuildPort · · Score: 0

      Yeah. Because methodologies are language dependant. Heavy sarcasm, by the way.

    5. Re:Let's Get Picky by Anonymous Coward · · Score: 0

      window.alert('this is using DOM and its javascript!');

    6. Re:Let's Get Picky by m50d · · Score: 1

      It's extreme, obviously

      --
      I am trolling
    7. Re:Let's Get Picky by feNIX77 · · Score: 1

      last time I checked "window." was never required before any of the window functions such as window.alert()

  15. "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.)

  16. Re:JavaScript code is the core code - What??? by Anonymous Coward · · Score: 1, Interesting

    Depending on JavaScript could be its downfall ... Sounds like in an inherently poor design.

    While I'm not a big fan of JavaScript, the incompatibilities you talk about aren't JavaScript's fault. They are due to different levels of JavaScript support in different browsers, and the addition of non-standard features by the different browser camps. AFAIK, XMLHttpRequest is not a standard. It was invented by Microsoft, and others found it so useful that all modern browsers now support it, albeit with slightly different APIs. That is the source of the incompatibilities, not JavaScript.

  17. 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
  18. 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.

  19. 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.
  20. Re:JavaScript code is the core code - What??? by GigsVT · · Score: 1

    Hmm..

    I guess we should thank the people writing and using IE exploits, they will ensure no one uses an obselete IE browser in the coming years.

    --
    I've had enough abrasive sigs. Kittens are cute and fuzzy.
  21. Re:JavaScript code is the core code - What??? by QuietLagoon · · Score: 1
    "Particular Way" for browser one ... "Particular Way" for browser two ... Sounds like in an inherently poor design.

    Not an inherently poor design, but an inherently poor architecture. If AJAX needs to be browser-specific, it is doomed in the long term.

    Think: flash in the pan.

  22. 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)

    1. Re:Have you tried Laszlo? by Anonymous Coward · · Score: 0

      And e) inaccessible by those of us who don't see any reason to install flash to use the web since for the most part it just replaces our annoying ads with cute little puzzle pieces

    2. Re:Have you tried Laszlo? by spoco2 · · Score: 1

      And you make up how much of the web... what?... less than a percent, probably less than a fraction of a percent actually... I'm talking about creating applications for use in companies here... no need for distribution of software, easy updates by the company who makes it etc. etc... it's a wonderful way to go. Even for the general populous, excluding those of your ilk, you're going to hit a very, very high percentage of your target market without them having to install anything.

    3. Re:Have you tried Laszlo? by figgypower · · Score: 1
      I hate everytime someone tells me about the wonders of Flash, especially in designing a whole freakin' site or all the interface out of it. What about open standards? Oh, you say Flash is an open standard -- funny, but I get the feeling it's only slighlty more "open" than say Java. This isn't just typical Slashdot "open" fanboyism -- open source and open architechture unarguably matters to the WWW and the Internet at large. Flash is not only not very open, but it's also annoying. So much so that there are tools to block just flash! I've even had clients tell me "Oh, and no Flash", because many people are figuring out that Flash is annoying and it is a user-friendly and accessiblity hindrance.

      I'll stick with my XHTML and CSS thank you very much, and yeah, maybe I'll use some JavaScript/ECMAScript when I'm forced to. But, until a client very specifically asks for Flash (hasn't happened yet!), Flash can burn in hell.

    4. Re:Have you tried Laszlo? by Anonymous Coward · · Score: 0

      Poor Flash useability and accessibility, like anything else, is down to one thing.. poor design.

      OpenLaszlo looks very interesting.

    5. Re:Have you tried Laszlo? by Tim+C · · Score: 1

      d) without a download of any plugin in most cases (just because of the penetration of flash)

      That's only because the user has generally already downloaded it - Firefox doesn't ship with the plugin by default, and IE comes with a rather old one. In both cases, the chances are your users will need a more up to date copy; it's just lucky that they'll almost certainly already have one.

    6. Re:Have you tried Laszlo? by stunt_penguin · · Score: 1

      I've used flash & XML to good effect for pulling & displaying documents from a web page, and I've made a start at calling a few basic AJAX requests- I'm still working on that- and there really isn't much to call between them in terms of difficulty. I love using flash, and quite obviously it does have much more advanced graphics capabilities and the ability to write your own objects & controls etc, but in terms of LOD, AJAX's isn't much more complicated that Actionscript 2.0.

      --
      When the posters fear their moderators, there is tyranny; when the moderators fears the posters, there is liberty.
    7. Re:Have you tried Laszlo? by Hast · · Score: 1

      If you find Laszlo interesting I recommend you listen to an interview with one creators. That talk was the first time I heard about the system and it seems really interesting. Particularly how they decided to make it a "proper" compiler so you can stick on different backends depending on what you want to target. Ie you could theoretically stick on a full SVG backend if you want to target Firefox 1.5 and later (as it has full SVG support).

    8. Re:Have you tried Laszlo? by Anonymous Coward · · Score: 0

      You forgot the most important point:

      e) Being Flash based means it's not fucking running in my browser.

      You can take your rotten Flash technology and stick it up your spamvertising arse.

    9. Re:Have you tried Laszlo? by Bipoha · · Score: 1

      Have you ever tried Lynx? Get rid of all your ads in one shot. Why stay half way into the stone age, when you can experience it full-force?

    10. Re:Have you tried Laszlo? by Cyn · · Score: 1

      Why do people always claim IE comes with flash?

      Your OEM might bundle flash along with the other things installed on your computer, but IE doesn't come with flash. The vast majority of people have to install flash, it's just that it's so simple to install (click where it should be displayed, and it smoothly installs itself) that nobody notices its happening.

      --
      cyn, free software and *nix operating systems enthusiast.
    11. Re:Have you tried Laszlo? by enw · · Score: 1
      omg.
      • Yeah, and no more email for me because of all of that darn spam I get.
      • And to heck with the US Postal Service because of the horrid abount of junk mail that I receive.
      • Which reminds me - I cancelled my telephone service because a telemarketer called me *twice*!!
      • And I don't ride the subway anymore because some stranger came up to me and asked me for a quarter.
      • And I never vote because of that guy that approached me at Trader Joe's and asked me to sign a petition.
      • And paper... oh paper! I've seen *way* too many books about subjects that don't interest me. Plus the ACLU prints their junk-mail on paper. You can take your rotten paper technology and stick it up your blah blah blah.
    12. Re:Have you tried Laszlo? by spoco2 · · Score: 1

      Well, mores the pity for you... we've been demoing our system to interested parties and they are extremely impressed with the look, feel and functionality of the product when, to their eyes, they haven't had to install a damn thing... We looked at XHTML, CSS, DHTML, Javascript etc. etc... but having 'enjoyed' the wonders of trying to get sophisticated javascript things working across all browsers and operating systems a while back, I wasn't keen on doing the same battles all over again... using your despised flash means we can forget about whether it's going to work on browser x on version y of operating system z, because we just know it will... no finicky little differences on how browser x renders item b just a few pixels off because in browser x it considers the browser window to include the scrollbar while browser y doesn't etc. etc.

      In your world Flash may be burning in damnation, but in our world it's a beautiful little ray of sunshine that has cut our development time right, right down.

    13. Re:Have you tried Laszlo? by spoco2 · · Score: 1

      Great link! Thanks... a very interesting interview... thanks... :)

  23. Why is this news? by mattwarden · · Score: 0

    This article contains absolutely nothing novel and is like 100 other introductory AJAX articles. I even recognize code snippets. Why is it on Slashdot?

  24. Re:JavaScript code is the core code - What??? by Bogtha · · Score: 1

    Yeah, because var req; if (window.XMLHTTPRequest) req=new XMLHTTPRequest(); else req=new ActiveXObject("Microsoft.XMLHTTP"); is such poor design.

    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.

    --
    Bogtha Bogtha Bogtha
  25. 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 jrockway · · Score: 1

      Paypal's ToS says they have the right to drain your bank account if you mention "mature content" on your website... so I doubt FAPP will catch on.

      --
      My other car is first.
    2. Re:LAMPS + RoR + AJAX = WTF?? by VGPowerlord · · Score: 1

      How about a Persistant Object Reusability Network?

      --
      GLaDOS for President 2016! "Well here we are again. It's always such a pleasure." -- GLaDOS, 2011
    3. 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;
  26. 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.

  27. Best thing since outsourcing! by Anonymous Coward · · Score: 0

    "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."

    Well if you don't learn it, your counterpart in India most certainly will. Elitism is for the unemployed.

  28. Poor Brett in the dark by shareme · · Score: 1

    Why not use the javascript way of avoiding activeXObject calls when accessing XMlHttpRequest objects on MISE? Its been in several ajax libraries for the past 4 months! AJAX is all browsers with the XMlHttpRequest object not just MSIE junk..

    --
    Fred Grott(aka shareme) http://mobilebytes.wordpress.com
  29. 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
  30. From the article by codyhess · · Score: 1

    "Ajax is far more than just a fad" They never said it wasn't a fad. It's fad++.

    --
    Standup Comedian New York, NY
  31. 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...

  32. Re:JavaScript code is the core code - What??? by AndroidCat · · Score: 1

    You don't want to know how many different versions of that object are probably listed in your registry. Hopefully the one that snagged the VersionIndependentProgID is the correct one. (Check under MSXML2.XMLHTTP as well.)

    --
    One line blog. I hear that they're called Twitters now.
  33. From the beginning of the article by codyhess · · Score: 1

    "it's not nearly as hard to learn as an entire new language."

    --
    Standup Comedian New York, NY
  34. 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.

  35. Lets clear this up NOW by geekoid · · Score: 1

    Ajax is not an acronym.

    From the article you did not read:
    "
    Ajax defined

    By the way, Ajax is shorthand for Asynchronous JavaScript and XML (and DHTML, and so on). The phrase was coined by Jesse James Garrett of Adaptive Path (see the Resources section) and is, according to Jesse, not meant to be an acronym.
    "

    --
    The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
    1. Re:Lets clear this up NOW by BorgCopyeditor · · Score: 1

      I must be dense. How is this not an acronym? Because the creator of the "shorthand" expression, an initialism that spells a pronounceable word, says it wasn't "intended" to be one?

      --
      Shop as usual. And avoid panic buying.
    2. Re:Lets clear this up NOW by JamesOfTheDesert · · Score: 1
      From the article you did not read:

      Google Suggest and Google Maps are two examples of a new approach to web applications that we at Adaptive Path have been calling Ajax. The name is shorthand for Asynchronous JavaScript + XML, and it represents a fundamental shift in what's possible on the Web.

      Defining Ajax

      Ajax isn't a technology. It's really several technologies, each flourishing in its own right, coming together in powerful new ways. Ajax incorporates:

      As others have noted, a shorthand term comprised of the intials of a series of words, and is itself pronounable as a word, is an acronym. Revisionist hostory not withstanding.

      The XML part is typically ignored in AJAX discussions, either because people find XML all scary and complex (and so use html/tag-soup), or because they do not understand the inplications for character encoding and internationalization.

      --

      Java is the blue pill
      Choose the red pill
  36. 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
  37. How to lie like an Expert by Anonymous Coward · · Score: 0

    "Nah. The job listings call for at least 5 years of AJAX experience for experts."

    Well considering all the ragging AJAX is getting on this forum, about it being an old technology in a new wrapper. You all should have more than five years on your resumes.

  38. Website for ajax amsterdam by piltdownman84 · · Score: 0, Offtopic

    Not where I would start when mastering Ajax Amersterdam. Here would be my primer:

    The Official Site

    or The English Offical Site

    also their Fixture List for the '05-'06 Season

    then there is Tickets site


    So there you go all the Ajax Websites to get you started!

  39. ajax to ajax by Anonymous Coward · · Score: 0
    Ajax, which consists of HTML, JavaScript technology, DHTML, and DOM, is an approach that helps you transform clunky Web interfaces into interactive Ajax applications.

    or in a shorter way:
    "Ajax is an approach that helps you transform clunky Web interfaces into interactive Ajax applications.

    great! using ajax, you can write ajax applications! imho a common point to identify fad, basically usable for being used. ajax/json and the others are great for some things - and have been great for years. the problem is, that there's no hyped language atm. c# has settled down, .net 2.0 is interesting, but covered, java's hype is over,... so if you want to write a technical book without the must of longer experience in a given technology, ajax is great for you, same as "dhtml" was. take a weekend (or if you are not familiar to any needed part two weekends) and you reach the highscore.... and then ask, what to write using it.
    google maps exists, good alax webmail is not a task for short term and all the tiny, simple auto-completion, tooltip and spell-checking thingies can be done during coffee break.
  40. I thought Ajax was supposed by geekoid · · Score: 1

    to do whatever General Kala says?

    General Kala: "Confess and we won't hurt you anymore, we don't like doing this at all."

    Man, so bad, it's great.

    --
    The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
  41. Re:JavaScript code is the core code - What??? by Anonymous Coward · · Score: 0

    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

    although I enjoy blaming as much on M$ as possible and make the rest of the world look great I have to somewhat disagree with the parent poster. Any "good" web applications developer will check their JavaScript on the 4 most used (IMHO) browser engines which consist of Geko, KHTML, Opera, and IE. I would love to say that only one of these parties have been and are still currently traveling down their own path but it simply isn't true (Check out OpenRico's demos with all 4 engines, only 2 work consistently!). Even with W3C's rules each browser developers has their own way of doing things which makes it extremely hard to code for all 4 browsers. I enjoy building applications in JS simply because it brings some cool bells and whistles that keeps my boss off my back but in all reality I would still consider JS programming to be a support nightmare.

  42. ok.. by mdman · · Score: 1

    Ok, one day Ajax is crap, next day its gold.. which is it?

    1. Re:ok.. by GuildPort · · Score: 0

      It's a pile of steaming, golden crap.

    2. Re:ok.. by Anonymous Coward · · Score: 0

      You might be surprised to hear this, but people do have different opinions on similar subjects. Amazing!

    3. Re:ok.. by mcvos · · Score: 1

      Ok, one day Ajax is crap, next day its gold.. which is it?

      It can be either, depending on how it's used. And why, especially. There are good, valid reasons to use Ajax, and there are very, very bad reasons.

  43. Visual Ajax Programming by youval · · Score: 1

    For a simpler programming model for rich web applications, take a look at Tersus. Tersus uses a single visual language to create user interface, client side behavior and server side processing.

    1. Re:Visual Ajax Programming by SageMusings · · Score: 1

      Interesting. However this is based on Java, which is a definite no-no where I work.

      --
      -- Posted from my parent's basement
  44. 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
  45. Re:Ajax, all the problems of time sharing, back ag by GenSolo · · Score: 1

    Actually, you have that backwards. The A in AJAX stands for Asynchronous. While AJAX is doing its thing, the rest of the page continues to load. It's when the ad is included via an object or img element that you end up having to wait for morons' ads to load.

  46. Reading comprehension of Slashdotters sucks by mclaincausey · · Score: 1

    It does not say AJAX is "not a fad," it says it is "more than just the latest fad." So he's saying it IS a fad (and the latest one), and more. I don't think that's an objectionable statement.

    --
    (%i1) factor(777353);
    (%o1) 777353
  47. Antiquated Slashdot by doog · · Score: 1

    All this recent talk about Ajax has me wondering, why is Slashdot essentially unchanged since 1999? Looks the basically the same and acts the same as when Rob wrote the first perl script. If AJAX is so great, why doesn't slashdot use it?

  48. Has no GRID control by Tablizer · · Score: 1

    Until AJAX has a decent editable data grid widget, it will not catch on much for biz apps. It takes a while to get the kinks out of grids, so Ajax better get a start on it now.

    1. Re:Has no GRID control by Anonymous Coward · · Score: 0

      AJAX is a technology, not a library or a development environment hence it can't have "an editable data grid widget". However, you can build one using AJAX. I did. About 3 years ago. It was pretty cool, actually: you could use keyboard to navigate it, it was sortable, editable, you could collapse and expand columns, add new rows, delete and a lots of other things. But I gotta tell you, the fucking thing cost me so many nerve cells that I will never bother to do it again, unless someone will pay REALLY well.

      Something to think about - you don't even need XmlHttp to use AJAX... Just use a hidden IFRAME and post it.

      And the bootnote: I worked on 2 large AJAX applications (only I didn't know it was called AJAX). Both of them were the most unreliable, hard to debug and use thingies I've ever seen.

    2. Re:Has no GRID control by Smuffe · · Score: 1

      You can always get one here. And no, I'm not affiliated with them in any way, just found them when we discussed purchasing a component of this type or build one ourselves.

    3. Re:Has no GRID control by Tablizer · · Score: 1

      Something tells me that is not open source.

  49. How about "Sucks Most Of The Time"? by isecore · · Score: 1

    I'm too lazy to search, but wasn't there a posting on /. just the other day where Jakob Nielsen claims that Ajax is teh suxx0r?

    Who are we to believe?

    --
    I enjoy large posteriors and I cannot prevaricate.
    1. Re:How about "Sucks Most Of The Time"? by DaveCar · · Score: 1

      Teh article is a spoof - a copy of a Nielsen article about frames with "frames" changed to "ajax" and a few other minor alterations.

      Still, probably raises some pertinent questions and caveats anyway.

      AJAX good for writing an "web application" but v. bad for writing a "web site" I would think.

  50. 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

    2. Re:XML by Colin+Smith · · Score: 1

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

      That's cos you're allowing any muppet with a web site to run his code on your machine...

      Java 2/ActiveX 2... Not Web 2...

      --
      Deleted
    3. Re:XML by TubeSteak · · Score: 1

      I stand corrected, though with all the convoluted crap he shoehorned into that javaSCRIPT, he probably could have thrown in a remotely hosted java applet or two and saved himself a lot of effort.

      --
      [Fuck Beta]
      o0t!
    4. Re:XML by Joe+Random · · Score: 1
      AJAX seems to be like Darth Vader... Powerful, yet dangerous.
      I find your lack of faith disturbing.
    5. Re:XML by ceejayoz · · Score: 1

      From the thread:

      "No, they don't let you render JavaScript on the site. If you RTFA, he split the word "java script" into two lines, hid it in a CSS tag, and IE read it anyway. MySpace has stripped out tags for at least a year and a half."

      Sounds like an IE bug, not a problem with AJAX.

    6. Re:XML by Anonymous Coward · · Score: 0

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

      j00 misppeled "pwn3d" d00d!!! teh l4mz3rz!!! ;)

    7. Re:XML by nazsco · · Score: 1

      > Remember the Samy worm?

      yep, ajax crap can be usefull, but will surely be misused. remember the debate around cookies?

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

      start wars nazi: you mean the dark force not vader.

  51. (raises his hand) by Strixy · · Score: 0

    I've done the HTML, XML and PHP as a hobbiest. (DHTML and DOM I suppose by association). Can you answer me this question. Is there any other way to work this method/model without javascript? Because really, JAVA? No no... I would rather bash my head into a brick wall. Maybe it's just me, but I've never really liked JavaScript. Or I've never been able to get my head around it, over it, under it or through it.

    1. Re:(raises his hand) by jericho4.0 · · Score: 1, Insightful

      A web application framework, like Ruby on Rails, can isolate you from most of the JS. Here is a introduction to Rails and Ajax.

      --
      "A language that doesn't affect the way you think about programming, is not worth knowing" - Alan Perlis
  52. AJAX == DHTML? by tallniel · · Score: 1
    "Ajax, which consists of HTML, JavaScript technology, DHTML, and DOM, ..."

    Comparing that to the description of DHTML itself at w3schools:

    "To most people DHTML means a combination of HTML, Style Sheets and JavaScript."

    DHTML also seems to involve a fair amount of DOM. So what is new about AJAX? Is it just the addition of XMLHttpRequest? And... didn't Microsoft invent that?

  53. 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.
    1. Re:scratch by Jasperke · · Score: 1

      I don't see any XML parsing in this sample...

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

      I think the "xmlHttp.responseText" is just a plain string, not XML.

      Jasper.

    2. Re:scratch by Heembo · · Score: 1

      Sorry not to explain more - but that was my point for "Listing 6. Handle the server's response" -> I tend to normally get XML back from the server and address said XML via XPATH. For Javascript XPATH libaries, I saw only 2 real choices: (1) Sarissa : http://sourceforge.net/projects/sarissa - which worked great, except on Safari. Then I tried googles lib at: http://sourceforge.net/projects/goog-ajaxslt/ - which is far superior in terms of browser support.

      XPATH is a standardizied way to address (or query into, or parse) XML. http://www.w3.org/TR/xpath - The only real calls I do for web apps look like: "/xml_response/manager/first_name/text()" which is rather straight forward and works in any language.

      --
      Horns are really just a broken halo.
    3. Re:scratch by Jasperke · · Score: 1

      Parsing XML in JavaScript is not very efficient, you better use some JSON techniques.

      It's more elegant to get XML from the server, but AJAX is here to make the user experience better, so lets keep things up to speed in our AJAX applications.

      Jasper.

    4. Re:scratch by Heembo · · Score: 1

      JSON is just string manipulation and Yet Another Protocol. I'd rather use something that my fellow programmers understand from the XML world - and my entire team already knows XPATH. All the folks who hit our aps are graphics folks with decent machines, only old pentiums or worse have performance problems with XPATH. I'm really happy with my architectural choices - XPATH is proven tech that my team already understands. I think JSON is cool for med sized apps; but I have a very large number of apps to maintainability, I'm all about XPATH and Googles XPATH library for . :)

      --
      Horns are really just a broken halo.
    5. Re:scratch by Jasperke · · Score: 1

      XPATH is too slow for me, I really gave it a fair try in my AJAX applications.

      JSON is not just string manipulation, it is a subset of the literal object notation of JavaScript. I think JSON doesn't make very much sense in other programming languages, but hey we're talking JavaScript now.

      I think this is a really great and fast way to get data from the server:

      var responseDataObject = eval(xmlHttp.responseText);

    6. Re:scratch by Heembo · · Score: 1

      Ah, I only see those performance problems when I try to parse LARGE xml objects. I only get very small XML objects from the server - the minimal data that I need, so I never see those performance problems in the real world. Now, if I never need to parse very large and complex XML, I will move to a JSON architecture instead for that app.

      --
      Horns are really just a broken halo.
  54. yes and no by subtropolis · · Score: 1

    Yes, the generally accepted practice is to use POST whenever changing state on the server side. But I disagree with you about only using XMLHttpRequest when i would've POSTed something normally. Being able to maintain state on the client and fetch more data (a GET) from the server is a Good Thing, also. In fact, it's what i mostly use XMLHttpRequest for.

    Not that that in itself helps with the bookmarking issue, though i also agree with you that providing a link where it may reasonably be useful, as google does, is also a Good Thing.

    --
    "Our interests are to see if we can't scale it up to something more exciting," he said.
  55. 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.

    1. Re:Why this is a fad: by markandrew · · Score: 1

      "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."

      Yeah, it's like air travel - what's all the fuss about? Before 1900, if you wanted to travel from Paris to Chicago you could have easily walked across town to the nearest coaching inn, caught a stagecoach to the coast, walk down to the quayside, board a steamer and take a few days to cross the ocean, get another stagecoach to the city and you're there. bloody air-travel fad.

    2. Re:Why this is a fad: by Anonymous Coward · · Score: 0

      Clearly you've never used "AJAX" much. It's much cleaner, less resource-hungry, doesn't feel hacked together like a sub-par-even-for-microsoft-app, no nasty proprietry IE things. no ugly iframes, or 'hidden' parts of the page. See the other reply you have too. You, sir, are clearly an idiot. Ajax has its uses, iframes, cgis, java applets and whatever else are heavy ugly and hacked together pieces of junk that should be avoided at all costs. Takes my memories back to all those "OMG LOOK ATTHE FLASHIING GIFS" geocities websites, with a GUEST BOOK PLZ SIGN, with countless iframes, all with different sized borders and sizes, seemingly randomly placed around the screen with 1337 hax0r flaming skulls, complete with background-colour matching the website it was stolen from, and not this one. *Pukes*

    3. Re:Why this is a fad: by Mitglieder · · Score: 1

      It's not as if the frameset/location.replace() method is SLLLLOOOOOOOOWWWWWERRR than HTTPRequest.

      The thing that's realy disapointing about HTTPRequest is that it doesn't have a persistant server connection. You still have to continuously request updates from the server which is like puting a bag over an ugly girl's head. As long as we're playing the compromise game why should we spend our resources making it an official compromise.

      You can have persistant server connections with java applets. Why couldn't that have become the fad? That would have atleast been a little ambitious.

  56. I can wait until this fad is over by Anonymous Coward · · Score: 0

    This is nothing more than a browser and user experience breaking, self glorified a waste of bandwidth.

    Ive never seen an ajax site that is without an error on Firefox OSX,win, or linux.

    People... mainly devs are just bored, nothing more.

    It will pass once the next version OMG 6.5 comes out.

  57. Your comment is utter FUD by irritating+environme · · Score: 1

    If you had an ounce of understanding of web architecture, you'd know that AJAX would actually alleviate those problems. You know (A)synchronously loading the ads via (J)avascript with an (A)PI that calls (X)ML data about the ads.

    In other words, you are a complete idiot.

    --


    Hey, I'm just your average shit and piss factory.
    1. Re:Your comment is utter FUD by Glen+Ponda · · Score: 1

      In other words, you are a complete idiot.
      Complete Idiot, have you met Obnoxious Jerk?

  58. Re:JavaScript code is the core code - What??? by JeremyALogan · · Score: 1

    I'd recomend checking out the Prototype Framework. It make all of this transparent.

  59. 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.

  60. Re:JavaScript code is the core code - What??? by Tim+C · · Score: 1

    JavaScript has so many functional work-arounds for each browser

    Such as? I'm aware of plenty of workarounds for the DOM, but that's nothing to do with Javascript. I'm also aware of the different ways to create an XMLHttpRequest object, but again that's nothing to do with Javascript (hint: it's an API you're calling, and just as the differences between KDE's libs and gnome's libs are nothing to do with C, so the different APIs the browsers implement are nothing to do with Javascript).

    So when you write Ajax applications that need to work on Internet Explorer, you need to create the object in a particular way.

    As others have already pointed out, that boils down to an if... then... else... construct. Big deal; if you can't handle that, then you shouldn't be coding in the first place. No, it's not ideal, but c'mon, it's not exactly rocket science either.

  61. 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.
    1. Re:You've GOT to be kidding... by Jasperke · · Score: 1

      DHTML is not "just Javascript and HTML", DHTML is about creating and modifying HTML dynamically.

      Jasper.

    2. Re:You've GOT to be kidding... by kuzb · · Score: 1

      Which, surprisingly enough, you do with javascript.

      I don't know what you think you mean by that statement, but consider putting more thought in to it.

      --
      BeauHD. Worst editor since kdawson.
    3. Re:You've GOT to be kidding... by Jasperke · · Score: 1

      Well,
      simply using javascript in HTML doesn't make it DHTML. DHTML is the dynamically adding/changing HTML. A simple onclick="alert('foo')" is not DHTML.

      I agree DHTML is HTML and javascript. But there's a little more needed than JUST HTML and javascript, to make it DHTML.

      Sorry for being unclear.

      Jasper.

  62. Nice? by Colin+Smith · · Score: 1

    Might as well be X or VNC. Lets face it people. If you want a desktop in your web browser, we already know how to do that.

    --
    Deleted
  63. Re:JavaScript code is the core code - What??? by Bogtha · · Score: 1

    Er, what are you talking about? Of course I know that Microsoft came up with the XMLHttpRequest object. I didn't think I had to explicitly give them credit every time the subject comes up though. And I didn't say anything about security.

    Just to recap, my point was that Microsoft using ActiveX and everybody else using a native object is what causes this minor incompatibility, and the incompatibility is going away.

    --
    Bogtha Bogtha Bogtha
  64. FInally: Leave AJAX... it Ajax. by catmistake · · Score: 1

    /. gets it right, for once.

  65. Whatever happened to Java applets? by Anonymous Coward · · Score: 1, 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.


    I'm genuinely confused. What does AJAX give you that Java applets do not? For example, people talk about Google's mapping application, and the ability to drag the map around. Isn't this something that Java was supposed to be able to do? And as far as browser incompatibilities go, isn't that what a Java applet program could circumvent?

    What am I missing here? Furthermore, AJAX seems to force open source -- all of your source code is available so that malicious people can exploit its vulnerabilities.
    1. Re:Whatever happened to Java applets? by aflat362 · · Score: 1

      I'm genuinely confused. What does AJAX give you that Java applets do not? For example, people talk about Google's mapping application, and the ability to drag the map around. Isn't this something that Java was supposed to be able to do? And as far as browser incompatibilities go, isn't that what a Java applet program could circumvent?

      Simple - Ajax allows you to do operations outside the realm of a java applet. You interact with the web page's DOM directly to manipulate the appearance. Plus, no JRE is required to run Ajax - just a javascript compatible browser. Yes, java applets are powerful - but this is just another tool we have at our disposal.

      What am I missing here? Furthermore, AJAX seems to force open source -- all of your source code is available so that malicious people can exploit its vulnerabilities.

      Not all your source code is available - just the presentation layer (which was always available with javascript / html) And the calls to your web server (which were also always available in HTML - think about regular HTML forms). The source code that does the actual processing of an XML request lies on the server. Ajax is not really a fundamental change of how things have always been done - its just a technique to gather data from the webserver (and then display the info) without navigating the whole page to get the data.
      --

      Conserve Oil, Recycle, Boycott Walmart

    2. Re:Whatever happened to Java applets? by Bogtha · · Score: 1

      What does AJAX give you that Java applets do not?

      The web is built around interlinked pages. Javascript manipulates those pages and relies on the browser's interface to make it work. Applets set aside a region within those pages and provide their own interface.

      This sounds like an academic point until you realise that most of the web browser development that has taken place over the past decade and a half is centred around using the information in the pages. Some of the things my browser supports that work with the pages themselves but not within applets:

      • My choice of font sizes
      • Ad-blocking
      • Find-as-you-type (find in general, for that matter)
      • Opening links in new tabs/windows
      • User stylesheets
      • User Javascript/Greasemonkey
      • Select text, right-click, look up selection in dictionary/thesaurus
      • Select text, right-click, search the web for the selected text

      ...and a lot more that I can't think of off the top of my head. Basically the majority of browser development over the past fifteen years has been centred around manipulating the page contents, and when you lock up your interface and information within an applet, those features can't get at them, so they stop working.

      What's more, even if you wanted to, it's extremely difficult to refocus browser development efforts to replicate these features for applets, because the way applets tie interface, information and executable together violates the Principle of Least Power.

      --
      Bogtha Bogtha Bogtha
  66. Re:Ajax in action: Meebo by RalphSleigh · · Score: 1

    You really think I give a darn about the hotmail address I use for messenger?

    --
    Come as you are, do what you must, be who you will.
  67. Because it's an excuse to mention Google again by Anonymous Coward · · Score: 0

    It looks like Slashdot has some sort of backroom deal to keep mentioning "Google" at least three times a day.

    "Talk" keeps the "buzz" hot, and "buzz" is what keeps the stock price of Google up, and I suspect that Slashdot admins own Google stock.

  68. Hmm.. by dep01 · · Score: 1

    DHTML *AND* DOM? i thought DOM was what made DHTML DHTML.

    --
    "hey, could you pass me a paper towel? er.. I mean... DEPLOY ABSORBTION PANEL!"
  69. Have you tried Flashblock? by Lee_in_KC · · Score: 1

    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 [snip]

    I block Flash and I encourage anyone I come across to do so as well. Flash means we can:

    Win a $5,000 shopping spree
    Get the X-Box 360 before it hits the stores
    Win a dream vacation

    Once in a while it does something worthwhile like batting penguins across the ice.

    If I stumble upon a "Flash-only" website I leave and send the business contact for the domain an email telling them why I left and won't be a customer.

  70. Ajax is Fast by handy_vandal · · Score: 1

    Ajax is fast -- it requests from the server only needed data -- saves downloading redundant HTML -- this has huge implications for delivering content to all kinds of clients, especially mobile/remote/latent clients.

    I'm sold, Ajax is "a must".

    -kgj

    --
    -kgj
  71. New "Cornfed" language to pwn Ajax soon anyway by elrous0 · · Score: 1
    Cornfed will incorporate DHTML, HTML, Javascript, Java, C++, XML, Cobol, and a new form of Apple BASIC into a programming language that takes 4.3 minutes to learn and is powerful enough to run every business site on the web, every desktop application ever written, and destroy Skynet's defense grid--all with three lines of code. It's clean, lean, and a snappy dresser!

    -Eric

    --
    SJW: Someone who has run out of real oppression, and has to fake it.
  72. Re:JavaScript code is the core code - What??? by poot_rootbeer · · Score: 1

    Besides which, you should be using browser-agnostic encapsulation functions for managing your DHTML objects. It's future-proofing.

  73. Author is a liar... by Anonymous Coward · · Score: 0

    "Brett McLaughlin has worked in computers since the Logo days.(Remember the little triangle?)"

    He looks about 25.

    When he says "worked" does hae actually mean "I played with logo on my C64"?

    I find it difficult to trust artilces written by bullshiters like him...

    1. Re:Author is a liar... by berbo · · Score: 1
      When he says "worked" does hae actually mean "I played with logo on my C64"?
      He means "I played with legos in my daddy's car".
  74. Ever notice . . . by Anonymous Coward · · Score: 0

    . . . how people with IDs over 900000 tend to be ignorant fucks?

  75. Re:Ever notice . . . that by closer2it · · Score: 1

    ... not everyone has a speedy bandwidth? The applications (Office suites for an example) on the desktop are still heavy, even for some... desktops.

    Developers try to minimize the HD/RAM used in every release. Integrating those applications on the web with a lite interface is very difficult since, I presume, "all" the byte's on the application are necessary. I think the problem "resids" on the bandwidth.

  76. Re:Ever notice . . . that by qray · · Score: 1

    Much if not all the business logic would reside on the server and stay there. Only the presentation logic would live on the client side.

    The current .Net client I'm working on talks to a Java backend via web services. It's still not ideal, as the client could be thinner than that. But we get some of the best benefits of both worlds. The UI richness of a traditional client with the transient connection of HTTP.

    I deally I'd rather see the UI defined in something like XUL or other technology that could be efficiently transported over the wire to a client that understand this. Similar to what X-Windows does but without the persistent connection.
    --
    Q

  77. Re:JavaScript code is the core code - What??? by fforw · · Score: 1
    The incompatibilites between the different XMLHttpRequest implementations are not really that big. The main differences are still in the DOM, e.g. Internet Explorers inability to act correctly to a
    domElement.setAttribute("class", "foo");
    or its totally different event model.
    --
    while (!asleep()) sheep++