Slashdot Mirror


Web 2.0 Recipes With PHP + DHTML

An anonymous reader writes "Take a look at these full simple code examples for dynamic elements for your web apps, including: Ad boxes, Pop-ups, Spinners, and Tabs. Easy ways to show and hide content on the page." From the article: "Incorporating JavaScript into your page makes the page dynamic and creates a more compelling user experience. Users can get more data more quickly, look at information from different aspects, and seamlessly navigate the site -- and the site doesn't have to go back to the server for lots of pages. However, there's also a reason to avoid using JavaScript: browser compatibility. In the early days of flat HTML, Internet Explorer rendered pages differently from Netscape. Those problems were fixed, but when support for CSS was added, new compatibility issues arose. Now most of the CSS issues have been solved, but JavaScript compatibility issues have cropped up. These compatibility problems have no easy solution. You need to weigh the benefit of what the JavaScript is doing against the number of browsers you'll need to test against and support."

134 comments

  1. Hmmm.... by Anonymous Coward · · Score: 3, Interesting

    This will make for some interesting comments. Begrizzled hippies whining about Javascript. Puzzled newbies arguing the merits of PHP. Flamefests over ruby on rails and other frameworks. Etc.

    1. Re:Hmmm.... by Intron · · Score: 4, Funny

      Us begrizzled hippies used the tag for this stuff.

      --
      Intron: the portion of DNA which expresses nothing useful.
    2. Re:Hmmm.... by yasgo · · Score: 1

      ... and is any of this stuff Search Engine friendly, or just something else that can inadvertantly get your site banned from Google?

    3. Re:Hmmm.... by ClosedSource · · Score: 1

      No. Begrizzled hippies would be whining about this newfangled language called "C". Nobody under the age of 60 is a hippie.

    4. Re:Hmmm.... by gbulmash · · Score: 1

      Forget the arguments over the relative merits of the two languages. I'm just wondering what benefit there is in combining them this way. The author explains HOW you can do it, but not WHY you'd want to or what makes it better than just doing PHP for server-side processing and JavaScript for client-side processing. HTML with JavaScript: 59 lines HTML with JavaScript and PHP: 67 lines Functional difference: Indistinguishable Maybe these are just proof of concept examples and if you're doing a big long page with lots of DHTML in it, there's a benefit somewhere, but I'm not seeing it. Please, someone, enlighten me why this is functionally relevant instead of just a semi-interesting thought exercise.

    5. Re:Hmmm.... by mattwarden · · Score: 2, Insightful

      Sure, if you want to keep promoting non-standard garbage. Please try to use the cross-browser, standards-compliant, Web 2.0 version of the blink tag in the future.

  2. BAM! by Metabolife · · Score: 4, Funny

    "including: Ad boxes, Pop-ups, Spinners, and Tabs. Easy ways to show and hide content on the page." Then you just mix it in the bowl and BAM! You have upset customers and lost respect!

    1. Re:BAM! by dbasch · · Score: 1

      I would have to agree. These aren't really compelling examples of what you can do with DHTML. Next.

    2. Re:BAM! by stateofmind · · Score: 1

      I can understand Ad boxes and Pop-ups. But Spinners and Tabs are a nice benefit

  3. I already hear... by Anonymous Coward · · Score: 0, Troll

    I already hear all those people who disabled Javascript to avoid XSS-exploitation mutter in frustration because the perty "Web 2.0" pseudo-hype renders most pages useless.

    What's so new about JavaScript?

    1. Re:I already hear... by Neil+Blender · · Score: 1

      What's so new about JavaScript?

      Haven't you heard? Javascript is the new....uh Javascript.

    2. Re:I already hear... by Crayon+Kid · · Score: 1

      What's so new about JavaScript?

      Nothing, and the article is pathetic. There's nothing "Web 2.0" in there, it's just a series of cheap tricks that any self-respectiv Web developer learned a long time ago. Floating tips, floating layers, showing and hiding elements, puleeeze.

      --
      i ate crayons when i was a kid and now i have two braincells and the blue ones taste nicer
  4. Shock by shoma-san · · Score: 2, Funny

    Wow, he's using Apple to view/code his site. He might already be riddled with a ton of viruses (I read the McAfee Feigns Fear at Mac Security article). Better not try this at home without McAfee!

  5. Spinners?! by Anonymous Coward · · Score: 0

    Spinners make the bitches hey-neener-neeners go neener-neener-squish!

    1. Re:Spinners?! by Anonymous Coward · · Score: 0

      Swooshers blaziggle my zorganthal also. Big time.

  6. Web 2.0 recipes? by Anonymous Coward · · Score: 0

    Web 2.0 recipes? If that is Web 2.0, my homepage is Web X (or Web Vista).

  7. IE Script Warnings by serutan · · Score: 4, Insightful

    My biggest hesitancy in using javascript is the IE warning bar that makes any page containing script look threatening. It's no problem with Foxfire, but most people still use IE. How many of them would see that warning and just assume something bad is lurking if they click Allow?

    1. Re:IE Script Warnings by Tx · · Score: 4, Funny

      For a minute there I thought you meant the bar at the top that says "Microsoft Internet Explorer", makes every website look threatening to me ;)

      --
      Oh no... it's the future.
    2. Re:IE Script Warnings by eggz128 · · Score: 4, Informative

      My biggest hesitancy in using javascript is the IE warning bar that makes any page containing script look threatening


      That only happens on XP post SP2 and when the content you are viewing is on a local drive. Once your page is uploaded -- or if you give it "The mark of the web" (Google for it) on your local drive -- the yellow warning bar no longer appears.
    3. Re:IE Script Warnings by stunt_penguin · · Score: 1

      It's the bar at the bottom with the 'Start' bit that puts me right off :o(

      --
      When the posters fear their moderators, there is tyranny; when the moderators fears the posters, there is liberty.
    4. Re:IE Script Warnings by forensicmeteoboy · · Score: 0

      It's FIREFOX!!! Get it right!

    5. Re:IE Script Warnings by Stoolio · · Score: 1

      I know you meant Firefox. But most javascript that this article sites is not alerted by the yellow warning bar.

    6. Re:IE Script Warnings by Anonymous Coward · · Score: 0

      You lost all credibility when you called Firefox -> FoxFire...

    7. Re:IE Script Warnings by RufusFish · · Score: 1

      Mark of the Web is a brilliant invention until you need to link to a non-embedded file like a word doc or PDF... It won't link to any local file which doesn't have the MOTW.

    8. Re:IE Script Warnings by ElleyKitten · · Score: 1

      >>>My biggest hesitancy in using javascript is the IE warning bar that makes any page containing script look threatening

      >That only happens on XP post SP2 and when the content you are viewing is on a local drive.


      The fuck? Shouldn't that be reversed? Or at least the same for both? I'm not sure why on earth you should be more trusting of websites than things on your hard drive.

      --
      "What is Internet Explorer 7? Are you saying we can't access the normal internet?" - I love tech support. Really.
    9. Re:IE Script Warnings by eggz128 · · Score: 1

      The fuck? Shouldn't that be reversed? Or at least the same for both? I'm not sure why on earth you should be more trusting of websites than things on your hard drive.

      It's more along the lines that you should be more warey of code that is loaded from your local machine and then exectuted -- i's given higher privilages by IE (it's run in the "My Computer" zone rather than "The Internet" zone).

      Code that out on the web is harmless (because IE will just refuse to do whatever the script asks) can be very dangerous when run locally. Actually, a large number of attacs against IE start by tricking it into running code in the My Computer zone rather than The Internet zone, so I guess the idea is that by refusing (or at least by giving dire warnings) that code is about to run in the My Computer zone you can mitigate some of the attacks.
  8. Wow by aftk2 · · Score: 5, Informative

    This article's been on the front page for a couple of minutes, with no comments. Perhaps Web 2.0 is tired?

    For me, I really like JavaScript and AJAX when it helps to actually improve the user experience. Dynamic tabs? What's the point? How is it really functionally than just heading to a different page, or using some middleware to control what content is served, after a page reload?

    Now, on a website I built, I've used AJAX (shudder) to create a commenting system that doesn't require the user to initially be logged in. The user can visit a page, submit a comment through the form, and if the user isn't logged in, they're presented with the ability to login right then and there, without losing their comment, and without even being shuttled off to a different section of the site, wondering if their comment will post when they're finished. If they don't have an account, they can create one right there. I think those kinds of tricks make remote scripting worthwhile.

    Plus, I think adding new widgets to HTML through JavaScript is pretty keen - like the sliders and calendar that Yahoo is making available under the BSD license at their developer area.

    --
    concrete5: a cms made for marketing, but strong enough for geeks.
    1. Re:Wow by ultranova · · Score: 5, Informative

      Now, on a website I built, I've used AJAX (shudder) to create a commenting system that doesn't require the user to initially be logged in. The user can visit a page, submit a comment through the form, and if the user isn't logged in, they're presented with the ability to login right then and there, without losing their comment, and without even being shuttled off to a different section of the site, wondering if their comment will post when they're finished. If they don't have an account, they can create one right there. I think those kinds of tricks make remote scripting worthwhile.

      Or you could just have the comment submit form include "username" and "password" fields if the user is not logged in, and if you need to go to another page to create an account, move the comment text around in a hidden field. No reason whatsoever to use user-side scripting, just good old PHP / JSP / ASP / whatever.

      --

      Forget magic. Any technology distinguishable from divine power is insufficiently advanced.

    2. Re:Wow by RomulusNR · · Score: 2, Informative

      No, the problem is that Web 2.0 does not equal DHTML, or even AJAX, which is really just DHTML with back-room data loading. The article admits shamelessly it's just about DHTML. The difference between DHTML and Ajax is the difference between Experts Exchange and Google Mail.

      I guess "Web 2.0" will never be defined. Is Web 2.0 "thick client" browsing, or is it providing and soliciting community-enhanced content?

      --
      Terrorists can attack freedom, but only Congress can destroy it.
    3. Re:Wow by ticklemeozmo · · Score: 2, Insightful

      This article's been on the front page for a couple of minutes, with no comments. Perhaps Web 2.0 is tired?

      I don't think it's that. It's just.. rehashed drek from other websites with a .ibm.com domain name.

      Really, there is NOTHING new in that tutorial that hasn't been done on other beginner websites. Nothing here is really Web 2.0, it's just hiding divs. That was in Javascript a long time ago. There's no backend business, no combining with other technologies. No data being "fetched", no integration with a db, no real css stylings. Just.. "visible" or "hidden".

      --
      When modding "Informative", please make sure it both has a source and IS actually informative.
    4. Re:Wow by Anonymous Coward · · Score: 0

      Portland has a scene now?

    5. Re:Wow by heinousjay · · Score: 2

      He could also just have the user mail the comment in using the postal system, but that is also not slick.

      --
      Slashdot - where whining about luck is the new way to make the world you want.
    6. Re:Wow by MooUK · · Score: 1

      It's fine to do that. But what about people with no wish or ability to use javascript? Did you leave in a backwards-compatible method of posting comments?

    7. Re:Wow by fbg111 · · Score: 1, Informative

      Perhaps Web 2.0 is tired?

      No, PHP is tired. It's now all about Ruby, Python, LISP, and the more obscure but no less interesting Lua, Scala, Qi, OCaml, among others, and various derivatives and frameworks.

      --
      Flying is easy, just throw yourself at the ground and miss. -Douglas Adams
    8. Re:Wow by Tim+Browse · · Score: 3, Funny
      I guess "Web 2.0" will never be defined. Is Web 2.0 "thick client" browsing, or is it providing and soliciting community-enhanced content?

      Defining Web 2.0?

      Well, that is a fun game, to be sure, but I prefer Mornington Crescent. The rules are less nebulous.

    9. Re:Wow by Anonymous Coward · · Score: 0

      Doesn't work in Opera.

    10. Re:Wow by fbg111 · · Score: 1

      I see I pissed off the PHP developers. Apologies for the offense guys, but having been one myself I'm fairly familiar with PHP. Taken in aggregate, it's a hack, and was bound to be superseded sometime or another by better languages. It certainly served a noble purpose though, providing a foss alternative to proprietary options like ASP, Java, and Cold Fusion (so did Perl, but PHP was more accessible to noobs, of which there were many in the early web days). And don't fret too much, it probably won't go away in the foreseeable future, as it is still by far the dominant foss web development language.

      --
      Flying is easy, just throw yourself at the ground and miss. -Douglas Adams
    11. Re:Wow by DJ+Rubbie · · Score: 1

      On the other hand, moving comments around inside a hidden field increase bandwidth requirements for a particular site. Offloading that particular part will reduce that, but the dependancy on javascript will cause problems for the simpilar browsers, hence a fallback of using the hidden field/resubmitting comment will need to be done. In the end, both solutions should be present, but that increases maintainence costs. It really comes down to what browsers (I mean, a browser that support/not support javascript, not IE/Mozilla/Opera, but each have their own quirks with javascript) the site owner wants to support.

      --
      Please direct all bug reports to /dev/null
    12. Re:Wow by ultranova · · Score: 1

      On the other hand, moving comments around inside a hidden field increase bandwidth requirements for a particular site.

      Since we are talking about human-typed text, and only moving it around when creating an account (once per user, presumably), I have a hard time imagining it to cause significant bandwidth usage. Especially since javascript also consumes space, and it needs to be sent every time someone tries to submit a comment without being logged in, since you can't know beforehand if he already has an account.

      Running pngcrush or equivalent on every image the site contains and making sure that any style information is in an external style sheet and not in the HTML itself (so it can be loaded once, instead of once per page view) are propably much more effective optimizations, and the latter has additional benefits.

      --

      Forget magic. Any technology distinguishable from divine power is insufficiently advanced.

    13. Re:Wow by larry+bagina · · Score: 1
      Especially since javascript also consumes space, and it needs to be sent every time

      Javascript can (and should) be put in a separate file, which allows browser caching. Alternatively, it can be sent and evaled as needed.

      --
      Do you even lift?

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

  9. This is news how? by Anonymous Coward · · Score: 0

    Am I missing something, or is this an article about javascript tricks that have been well characterized for several years? Must be a slow news day...

  10. Cross-browser Flash. by Anonymous Coward · · Score: 0

    "These compatibility problems have no easy solution. You need to weigh the benefit of what the JavaScript is doing against the number of browsers you'll need to test against and support.""

    Flash!

    1. Re:Cross-browser Flash. by Anonymous Coward · · Score: 4, Insightful

      Flash!

      Ah-aaaargh!

      Seriously though. Flash is an awful choice. One the plus side, you get fairly consistent rendering. On the minus side it completely fucks up your entire interface. Middle-click to open in a new tab? Right-click to bookmark? Shift-click to open in a new window? Ctrl-F? Find-as-you-type?

      Flash is great if you want to trade in the quality of the end result for ease of development. But I'd rather put a bit of effort in and get a decent interface rather than put little effort in and get crud. Crud that might look pretty, granted, but still a horrible, horrible interface.

  11. The worst page ever. by caluml · · Score: 4, Funny

    I wonder - we should have a competition to see who can make the most obnoxious web 2.0 page. Sort of like 1997 web "1" style - "under construction" gifs, flashing text, and scrolling status bars.

    1. Re:The worst page ever. by drspliff · · Score: 2, Funny

      Oh my friend, this is already being done, as featured in an article on TheDailyWtf.. HyperLink 2.0:

      # a translucent layer (DIV) is placed over the entire page, causing it to appear "grayed out", and ...
      # a "please wait" layer is placed on top of that, with an animated pendulum swinging back and forth, then ...
      # the XmlHttpRequest object is used to call the "GetHyperlink" web service which, in turn ...
      # opens a connection to the database server to ...
      # log the request in the RequestedHyperlinks table and ...
      # retrieves the URL from the Hyperlinks table, then ...
      # returns it to the client script, which then ...
      # sets the window.location property to the URL retrieved, which causes ...
      # the user to be redirected to the appropriate page

      No doubt Microsoft will catch onto this, very smart and complex ways of doing very dumb things :)

    2. Re:The worst page ever. by NoMoreNicksLeft · · Score: 1

      I thought I already won that contest.

    3. Re:The worst page ever. by jZnat · · Score: 1

      After you spend some $100k on Oracle 10g, I think some companies will be looking for any opportunity possible to make use of their database servers and DBAs.

      --
      'Yes, firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
    4. Re:The worst page ever. by WWWWolf · · Score: 1

      Already done. Presenting the winner, second place and the honorable mention...

  12. Search Engine Visibility by fragmentate · · Score: 4, Insightful
    If you use JavaScript to render content, you're going to have a really hard time getting indexed by the search engines. If you're an individual, not such a big deal. If you're a company... make sure you have an alternative to pure javascript so that the search engine robots can find the content.

    Same goes for Flash...

    I can't believe how many companies spent tens of thousands of dollars on a CMS package, or to a "web designer" that rendered them invisible to the search engines.

    The article does recommend a fallback for unsupported browsers. Take this to heart, because "GoogleBot" is an unsupported browser.

    1. Re:Search Engine Visibility by Ford+Prefect · · Score: 1

      If you use JavaScript to render content, you're going to have a really hard time getting indexed by the search engines. If you're an individual, not such a big deal. If you're a company... make sure you have an alternative to pure javascript so that the search engine robots can find the content.

      There's an FPS game map review site I used to visit often which has an utterly pointless Javascript 'compression' system behind it, originally coded to supposedly make it load more quickly over dialup connections.

      As a result, the site is effectively invisible to search engines, and isn't exactly healthy these days.

      I've found that one of the best 'fallback' browsers for simulating how a search engine sees things is good old lynx - as a result, I make sure my own pages are legible, navigable and sensibly structured from a low-level point of view. Also, it's a good way of checking that you haven't introduced too many wheel reinventions when good old <a href=...>s would have done the trick...

      --
      Tedious Bloggy Stuff - hooray?
    2. Re:Search Engine Visibility by iabervon · · Score: 1

      I suspect you don't really want Google to index your ads or pop-up definitions, and I think it doesn't ignore content with visibility "hidden", so this code should work the way you'd like.

    3. Re:Search Engine Visibility by KillerDeathRobot · · Score: 1

      Yeah, if you use javascript to simply change hidden or display:none content to visible or display:block, then search engines can see that just fine.

      --
      Thinkin' Lincoln - a web comic of presidential proportions
    4. Re:Search Engine Visibility by Bogtha · · Score: 1

      The best part about that WTF is how nobody seems to have noticed it's very similar to how GMail handles links. The only real difference is that the WTF actually uses <a> elements and changes the page location, which means it actually works better than GMail for things like bookmarking, the back button, keyboard navigation, etc.

      --
      Bogtha Bogtha Bogtha
    5. Re:Search Engine Visibility by nickull · · Score: 1

      Actually, we (yeah - I work at MacroAdobedia) offer a free SDK for making Flash Search engine friendly in response to customer requests. You can download this from our developer site http://www.adobe.com/licensing/developer/ The SDK includes an application named 'swf2html'. Swf2html extracts text and links from a Macromedia Flash .SWF file, and returns the data to stdout or as an HTML document. Swf2html is provided as a compiled application, and as a static library for linked library implementation. For complete functionality, see the file Readme.htm included in the SDK.

      --
      "Question everything, including this!" - http://technoracle.blogspot.com/
    6. Re:Search Engine Visibility by PietjeJantje · · Score: 1
      >If you use JavaScript to render content, you're going to have a really hard time getting indexed by the search engines.

      True, on the other hand, it allows some really cool tricks...

      AJAX site: http://www.dutchpipe.org/

      Yahoo cache: http://216.109.125.130/search/cache?ei=UTF-8&fr=sf p&p=dutchpipe&u=www.dutchpipe.org/&w=dutchpipe&d=N -xgzEaqMtyR&icp=1&.intl=us

    7. Re:Search Engine Visibility by heinousjay · · Score: 1

      Have you actually used Gmail? I ask only because the back button and the keyboard work fine. Those objections make no sense. On the other hand, bookmarking does not work, but it makes sense in so few cases inside Gmail that I never even missed it.

      --
      Slashdot - where whining about luck is the new way to make the world you want.
    8. Re:Search Engine Visibility by Bogtha · · Score: 1

      Have you actually used Gmail? I ask only because the back button and the keyboard work fine.

      The back button intermittently works and doesn't work, depending on which browser you use, your browser settings and exactly what you're clicking on.

      As for the keyboard, try tabbing to an email link and reading it. It doesn't work, the emails never get focus. It doesn't work because somebody at Google who was a bit too enamoured with JavaScript thought "Hmm... I need to make something a link. Shall I use an <a> element like every other link on the web, or shall I pointlessly reinvent links with a combination of <span> elements and JavaScript?"

      --
      Bogtha Bogtha Bogtha
    9. Re:Search Engine Visibility by oliderid · · Score: 2, Insightful

      Concerning FLASH a potential explanation is this real life experience.

      The CMS was installed and running for weeks but our client was still requesting modifications after modifications on the lay-out. HTML+CSS and nice visual. Nothing really wrong with it. Until that contract, Our lay-outs would only suffer few modifications before being accepted.

      Their profile: a medium interior design company.

      We were about to lose money. We spent more money on the lay-out than on the tool in itself. What's puzzled me is that Visuals were more important than the content for them. They couldn't care less about the newsletter module or the stat modules or the e-commerce module we have installed for their product. They didn't care that the space dedicated for the text (the content) was around of a paragraph's size. they wanted a beautiful web site. It should be beautiful, not efficient nor informative nor easy to update and google was a "detail" for them (the biggest source of new visits is a "detail")

      So...We end up with a bet: Use FLASH, make a lot of fanzy animations, and see what happens.

      Our clients were looking like kids to the "standard" animations you can get with the SWISH Max (89 Euro) software. That's probably the best investment I have ever done. 89 Euro have saved a 15K+ contract. They were extremely impressed, they tought that we have all spent a lot of extra hours to please them. In fact It took me with our poor web designer a couple of hours (To select some predined animations). We have also used another product called SWISHPIC to make FLASH pictures galeries...And that's it.

      Within a week the Lay-out/web site was accepted.

      We told them that witht his new technologies, they will have to pay us to update their picture galeries (no problem), that they would have to type twice the text to make newsletter (no problem), the homepage will be static and the menu too (strange for a CMS, isn't it) again no problem.

      They live in another world.
      FLASH has been made for customers like them.

    10. Re:Search Engine Visibility by chiskop · · Score: 1

      Hmmmm, cool trick. The Yahoo link displays the cache of a standard-looking page, while the original link 404's.

    11. Re:Search Engine Visibility by heinousjay · · Score: 1

      The back button intermittently works and doesn't work, depending on which browser you use, your browser settings and exactly what you're clicking on.

      Worked as expected in every situation I just tested in Firefox, IE, and Safari. I'm not sure what browser settings you reference that control back/forward behavior that apply in this situation, since Gmail no-caches every response anyway. Maybe I'm missing something here.

      It is important to draw a distinction, of course: this is an app, and as such the pages in the history that are no longer applicable to app state shouldn't be available to you. If you're talking about seeing those, we have a philosophical difference.

      As for the keyboard, try tabbing to an email link and reading it.

      It's curious they didn't make that work. I'm building an app that does something similar (lots of selectable lists) and keyboard activation was one of the first things I put in. (if you're curious, I didn't use a link because I activate on the entire table row. I use the single click select/double click activate paradigm. There are also a ton of secondary actions that can be performed.)

      I'm still not against Javascript, however, even with these issues. If Gmail were your average blog then these would be grievous problems. Since it's a beta app delivered through a web browser, I'm willing to cut it some slack from the day to day web expectation.

      --
      Slashdot - where whining about luck is the new way to make the world you want.
  13. Web 2.0 by nstlgc · · Score: 3, Funny

    Stop calling it Web 2.0, you are making a total fool out of yourself. I thought meaningless buzzwords were for managers?

    --
    I'm Rocco. I'm the +5 Funny man.
    1. Re:Web 2.0 by neoform · · Score: 1

      Thank god there are others who feel the same way.
      While we're at it, why don't we find a real name for "AJAX" since when did "and" count as a letter in an acronym?

      --
      MABASPLOOM!
    2. Re:Web 2.0 by x1n933k · · Score: 1
      Since the cartoon show "Duckman" (Featuring the voice of Jason Alexander) appeared in the mid-90's to shake the adult cartoon world up. His enligthen newphew, Ajax, was made popular among those late-night cartoon watching adults. Many of whom spent hours on the internet...

      Cheers

      [J]

    3. Re:Web 2.0 by mattwarden · · Score: 1

      Typical Developer 1.0. In this age of outsourcing, developers need to assume more managerial roles, like project management and talking out of their ass.

  14. I'm sorry but.. by Anonymous Coward · · Score: 0

    Ruby on Rails is included in the definition of Web 2.0

    Thanks you f'king PHP wankers, have a nice day!

    1. Re:I'm sorry but.. by Decaff · · Score: 1

      Ruby on Rails is included in the definition of Web 2.0

      It it? Where?

  15. How useful is this? by Eideewt · · Score: 4, Insightful

    Except for the tabs, these all seem like a pretty bad idea. Nobody wants to click all over to get at information that could have just been displayed in the first place.

    1. Re:How useful is this? by Anonymous Coward · · Score: 0

      I use AJAX to mark off movies that I've seen in a database when I check the box. The page doesn't reload, you don't have to press a submit button, the background color of the row changes, and the total count is incremented (or decremented if you uncheck a box). The best part of the fact that the whole page doesn't need to reload and you can continue going down the list uninterrupted.

  16. Oh greaaaat... by radiotyler · · Score: 4, Insightful
    "...including: Ad boxes, Pop-ups, Spinners, and Tabs. Easy ways to show and hide content on the page."/i>
    Did we really need php/dhtml ad boxes and pop-ups? What, the good-ol' fashioned ones weren't annoying enough, or was there a strong demand for pretty dynamic pop-ups? This is one of those things that you see, and read the article and think, "Oh boy, I can't want to see this get implemented poorly and exploited." Anyone care to take any bets on how long it takes before this annoying crap is assulting us in ad format on a wide scale - or is it already?
    --
    hi mom!
    1. Re:Oh greaaaat... by kuzb · · Score: 3, Insightful

      Never worked in internet advertising before?

      Trust me, there is a strong demand for this stuff (it is in use already), and advertisers don't care how much it annoys you. In fact, it's been shown in our in-house studies that really annoying ads work better than ones that are not. This means, the more movement it has, and the more noise it makes, the more effective the ad will probably be. The solution? Convince everyone not to click on them. That would make them go away faster than anything.

      The fact of the matter really is that people click on this stuff. More than you probably realize.

      --
      BeauHD. Worst editor since kdawson.
    2. Re:Oh greaaaat... by drspliff · · Score: 1

      It's already assaulting you in advert/popup format and has been sitting un-noticed (and working very well) under your nose for quite some time.. what am I talking about? AdSense and Yahoo.. and Casale.. and any number of other ad providers.

      Have you ever seen those sites where some words have double underlines, when your mouse is over them an annoying box pops up with context sensitive advertising (e.g. for 'hosting' some random hosting company advert would pop up). Guess what? JavaScript and Ajax makes this possible.

      None of this stuff is really new, it's just a case of 1) thinking of something innovative to do with it, 2) using some XmlHttpRequest multi-browser wrapper library to save writing your own and 3) atleast having a half-hearted go at backwards compatibility.

      This sort of book isn't one of the true groundbreaking ones that really rips apart a subject or provides great and deep insight into the subject (although I haven't read it yet); it's one of the many jumping on the Ajax bandwaggon, one for the bookshelf and an occasional flick through once you've got the general idea of Ajax.

      Probably worth the money if you're a web programmer and need a jump-start.

      Just my 2c!

    3. Re:Oh greaaaat... by thrillseeker · · Score: 1
      it's been shown in our in-house studies that really annoying ads work better than ones that are not

      Only in the (very) short term. Sure they get noticed - long enough to make people look for ways to block them - or simply go spend their time (and money) elsewhere.

    4. Re:Oh greaaaat... by radiotyler · · Score: 1
      Nah, the only way I come remotely close to internet advertising is the banner ads on my personal website - and 3/4 of those are for friends of mine, the other 1/4 generate the "revenue" (HAHAHAHAHA) and they're all for products and websites that I heartily endorse. No spammy popup garbage for me, but then again I have that luxury of being able to say, "No sir, I don't like it."
      "In fact, it's been shown in our in-house studies that really annoying ads work better than ones that are not."
      I know man, that's the part that depresses me the most: when someone thinks you can "punch a monkey and get to have sex with Neil Diamond!*" It's not that I don't think it would work as a marketing tactic, or that I don't think that people can/do/will use it. It's more the, "Uh, why now?" factor that has me puzzled.

      *I personally have never seen this ad, nor would I click it.
      --
      hi mom!
    5. Re:Oh greaaaat... by radiotyler · · Score: 2, Interesting

      The double underlines thing drives me freakin' wild, man. The thing that bothers me about that is I think it's (un?)intentionally teaching people that the link that has been inserted into the article you're reading may not be endorsed by the site writing the piece, and getting people a bit paranoid about what they click on.

      Of course, this can all be cured by taking your information from "reputable" websites - but sometimes I like to visit the other side of the tracks, and it just makes me that much more cautious. Embedded ads and content just seem like a really bad idea to me. But what the hell do I know.

      --
      hi mom!
    6. Re:Oh greaaaat... by PenGun · · Score: 1

      Could be why a lot of us never see ads. I haven't for years, that little addition to userContent.css has stood the test of time.

          PenGun
        Do What Now ??? ... Standards and Practices !

    7. Re:Oh greaaaat... by kuzb · · Score: 1

      Our revenue statements would suggest otherwise.

      --
      BeauHD. Worst editor since kdawson.
    8. Re:Oh greaaaat... by NoMoreNicksLeft · · Score: 1

      I needed popups for my webapp, or so I thought. Legit stuff, couldn't really fit it into the main page, didn't want the distraction either.

      But you shouldn't be opening windows, it's damned rude.

      I've finally settled on doing something like what lightbox does for pictures. It opens the "popup" on the same page, overlayed on top of what is already there. Sort of a modal dialog box. It looks slick, it's not anywhere near as annoying, and it's closable... you can go back to the main page, and nothing is added, not permanently.

      Popups need to die.

  17. This is not newsworthy. by Anonymous Coward · · Score: 0

    It is just another article on doing DHTML on webpages. I read articles like this five years ago. This is not news. Zonk is not a nerd.

  18. Urge to kill...rising... by crerwin · · Score: 5, Funny

    Great, instructions for ad-boxes, pop-ups, and spinners (I stopped reading the article before I got to what spinners were, but I'm sure they're obnoxious). This is almost as bad as the fact that Macromedia has a forum on their site dedicated to creating ads. Some people just give humans a bad name.

    Next week: Your first phishing page with php and dhtml in just minutes!

    1. Re:Urge to kill...rising... by Eideewt · · Score: 1

      Spinners turn out to be collapsable sections of text. You can click an arrow or a +/- to expand them and read them or make them just a single line. So yes, they're very obnoxious.

    2. Re:Urge to kill...rising... by Anonymous Coward · · Score: 0

      you mean like

      document.getElementById('foo').style.display = '';



      This is news?

    3. Re:Urge to kill...rising... by Idimmu+Xul · · Score: 1
      Spinners turn out to be collapsable sections of text. You can click an arrow or a +/- to expand them and read them or make them just a single line. So yes, they're very obnoxious.

      I've seen them put to good use to hide spoilers in forums and the like, like everything, there are good and bad ways to use them, but far fewer good ways than bad.

      --
      The problem with slashdot is that most of its users were bullied and stuffed into lockers as kids!
    4. Re:Urge to kill...rising... by corychristison · · Score: 1
      Spinners turn out to be collapsable sections of text. You can click an arrow or a +/- to expand them and read them or make them just a single line. So yes, they're very obnoxious.
      Like in Gmail?
    5. Re:Urge to kill...rising... by Eideewt · · Score: 1

      Beats me. I'm sure there are many good uses for them, but they fall squarely in the "way too easy to misuse" category.

    6. Re:Urge to kill...rising... by jZnat · · Score: 1

      You can show/hide spoilers with some very simple CSS. The JavaScript would only be for IE of course. ;p

      --
      'Yes, firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
    7. Re:Urge to kill...rising... by larry+bagina · · Score: 1

      like slashdot's related stories.

      --
      Do you even lift?

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

  19. this is sad... by Jehlon · · Score: 4, Insightful

    I was hoping for some good code, it is from IBM after all, but its nothing more than crappy javascript from '99. Someone buy this guy the DOM Scripting book (http://www.domscripting.com/) and teach him what the seperation of structure (XHTML), presentation (CSS) and behavior (javascript) is all about.

    1. Re:this is sad... by Eljas · · Score: 1

      ... teach him what the seperation of structure (XHTML), presentation (CSS) and behavior (javascript) is all about.

      So, your websites usually have no content at all?

  20. Re:acid test by EvanED · · Score: 1
  21. Oh god. by Sartak · · Score: 1
    Full simple code examples for dynamic elements for your web apps, including: Ad boxes, Pop-ups, Spinners, and Tabs

    Oh god, won't someone please think of the end users?

  22. Javascript by Anonymous Coward · · Score: 0
    Go ahead and use Javascript all you want. But remember that some users disable Javascript, and some users don't even have a Javascript to disable. If your website fails to works perfectly for these users, the failure is yours (not theirs) and you end up looking like an amateur \/\/3b D3$ign3r.

    Javascript is for fluff, and arguably performance. But never for core functionality.

    1. Re:Javascript by heinousjay · · Score: 2, Funny

      No one ever went broke ignoring 1% of the target market.

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

      Actually it's more like 10% without javascript.

      Plus search engines don't grok javascript.

  23. Ad boxes, Pop-ups, Spinners, and Tabs by Technician · · Score: 1

    Ad boxes, Pop-ups, Spinners, and Tabs

    Are the biggest reason to not use Java Script most of the time.

    I have a couple PC's. One for trusted sites, and the other for general internet browsing. Some sites display a blank page. Too bad the site doesn't check what the client is running. A blank page does not provide any information including any reason I might want to visit with scripting turned on.

    --
    The truth shall set you free!
  24. Why is this an article specifically? by Ahnteis · · Score: 2, Informative

    I ask because there are whole sites ( http://www.dynamicdrive.com/ ) that provide many more examples along with compatibility information. There are also huge sites with tutorials about developing your own scripts.

    So why choose this seemingly random PAGE that offers (as far as I can tell) nothing new?

    1. Re:Why is this an article specifically? by Anonymous Coward · · Score: 0

      Because someone saw it on Digg.com this morning and felt like "cross-posting?" It's been happening a lot lately.

    2. Re:Why is this an article specifically? by Anonymous Coward · · Score: 0

      Well, this random page comes from IBM. I figure it's enough of a brand name to merit a visit.

  25. What I'm really expecting... by Spy+der+Mann · · Score: 1

    is for XULRunner to be released so we won't have to deal with the ugly HTML mess anymore.

    1. Re:What I'm really expecting... by Spliffster · · Score: 1

      from what i see by using XULRunner, you most probably don't have to wait for a release (unless you need specific platform integration features like minimize to tray, etc.).

  26. Stupid code by Bogtha · · Score: 5, Informative

    IBM's JavaScript articles are usually high quality. But this one is awful. It uses invalid code, it doesn't degrade gracefully, it mixes HTML, CSS and JavaScript into the same file instead of separating them, and it breaks when you try and do things as simple as open a link in a new tab.

    Don't be fooled by the "senior software engineer with more than 20 years of experience" author, this guy doesn't know the most basic, newbie things. I can only imagine that his 20 years of experience was with something other than HTML, CSS and JavaScript. For example:

    • The code doesn't use a doctype line. Not only does that preclude basic QA in the form of validation, but it kicks browsers into "quirks mode", which screws up CSS rendering.
    • The code uses href="javascript:...". This is stupid and wrong.
    • He just dumps content out wherever he likes, hides it with CSS and then shows it with JavaScript. So much for backwards compatibility. When CSS is not available, you'll just get random bits of content scattered throughout the page.

    That's just the tip of the iceberg. This is an exceptionally poor article.

    --
    Bogtha Bogtha Bogtha
    1. Re:Stupid code by Anonymous Coward · · Score: 1, Informative

      It wasn't with actual GUI development either, or he wouldn't have called it a spinner. A spinner (Already defined by IBM) is something entirely different.

      SWT calls what he was doing an ExpandBox and I've also seen them called Accordions.

    2. Re:Stupid code by iamdrscience · · Score: 1
      I can only imagine that his 20 years of experience was with something other than HTML, CSS and JavaScript.
      I'd like to meet the guy that has 20 years experience with HTML, CSS and Javascript. Perhaps he could teach me the secrets of his time machine.
    3. Re:Stupid code by Cl1mh4224rd · · Score: 1
      The code doesn't use a doctype line. Not only does that preclude basic QA in the form of validation, but it kicks browsers into "quirks mode", which screws up CSS rendering.
      It's a good thing this article wasn't about valid HTML coding, then, isn't it?
      --
      People will pass up steak once a week, for crap every day.
    4. Re:Stupid code by Bogtha · · Score: 1
      1. People tend to copy & paste code from articles like this into their own projects. By using invalid code, he's causing other people to use invalid code.
      2. If he makes basic newbie errors in one part of the code, then it's a pretty good indicator that the rest of the code is crap too.
      --
      Bogtha Bogtha Bogtha
  27. You forgot a major flaw with JavaScript sites: by Anonymous Coward · · Score: 0

    They can't be indexed by search engines.

    At least not true JavaScript sites, like http://www.worldspace.nu/

    You can fix a pretty good browser compability -- if the site works in IE, Opera and Firefox you are rather safe (and in time safer). But it's not easy to know when the search engines will be able to index true JS sites.

    And if the browsers back/forward buttons can't be used (like on the site I mentioned) a lot of people will get very annoyed.

    This is why I don't think dynamic content will be mainstream any time soon (at least not sites with JavaScript that handle all the content).

  28. customer: overloaded variable. ambiguous. by NotQuiteReal · · Score: 4, Insightful

    Customers who use websites might not like that stuff, but customers who buy websites often love it and ask for it by name, and pay by the hour!

    --
    This issue is a bit more complicated than you think.
  29. Why bother with PHP? by daeg · · Score: 1

    Those examples don't need PHP, they are simple copy and paste jobs. Adding PHP did nothing for the code. Sure, you could argue that using PHP would allow you to add features, but if that were the case, the article should explore possible additions.

  30. Kick it up a notch by Anonymous Coward · · Score: 0

    ..with the ActiveX Weasel. Bam! Instant security nightmare. Or maybe you want to knock it up a notch with the Java Snow Globe - old skool flavour!

  31. What the... by Null+Nihils · · Score: 3, Insightful

    *cough* *sputter*

    ... I'm sorry... this isn't Web 2.0, this is Web 1996... this is... this is... I couldn't even cope with TFA, it was giving me horrible flashbacks from back when I wrote IE-only webpages because I didn't know any better.

    Seriously, I'm not trying to troll, I'm genuinely at a loss for words here... how... what...??? ...who are you people, and what have you done with Slashdot?

  32. Re:acid test by Ankle · · Score: 1
  33. Who the fuck wrote this?! by Anonymous Coward · · Score: 5, Insightful

    In the early days of flat HTML, Internet Explorer rendered pages differently from Netscape. Those problems were fixed, but when support for CSS was added, new compatibility issues arose. Now most of the CSS issues have been solved, but JavaScript compatibility issues have cropped up.

    Aaaaaaaaaaaaaahhh. My eyes are bleeding. What the fuck are you talking about?

    In the early days of HTML, Internet Explorer did not exist.

    Only IE and Netscape render pages differently?!

    Most of the CSS issues have been solved?!? What?!

    Javascript compatibility problems are new?@#$?@#$!?

  34. Gimmicks vs. Usefullness by ChrisMitchell · · Score: 2, Insightful

    From a practical point of view the information provided by the site in question is useless (not to take away from the efforts of those involved). The focus really should be on the convenient, useful aggregation of content, while providing ease of use for visitors to the site.

    I was roped in by the "wowee zowee" stuff as IE battled Netscape in the 90's. Eventually we all realized that coding to the lowest common denominator was the key to creating a consistent, error free experience for our end users.

    The bottom line is to make our sites useful. If done properly the sites can look great, be secure, provide great functionality and be compatible with all platforms. The caveat is that we remain at the mercy of browser quirks, making standards compliance a serious inconvenience for both users and developers.

    This is the direction that emerging (AJAX, for example, is not new. It IS emerging) techniques and technologies should be focused on. Such a focus could cause new tricks to enhance compatibility/usefulness across platforms.

    Thanks for letting me participate in the discussion!

    --
    WTF? I ordered a CHEESEburger!
  35. I like this for Slashdot by Nicolay77 · · Score: 1

    I would like to be able to click in some part of a comment to hide it and all its responses, so I can read the comments I like and not all the stuff that gets posted.

    Please some of the CSS hackers submiting designs for the new /. take this into account.

    --
    We are Turing O-Machines. The Oracle is out there.
    1. Re:I like this for Slashdot by Bertie · · Score: 1

      Oh, there's a Greasemonkey script for that. In fact there's several.

    2. Re:I like this for Slashdot by Nicolay77 · · Score: 1

      I didn't knew about that.

      And what about other browsers besides Firefox? Or when I'm in places where I can't install software?

      That's why I want this to be by default in slashdot.

      You have just proved to me that it should be here by default.

      Anyway, I'm trying them ASAP, there is anyone that you prefer?

      It seems one is deprecated and other is untested.

      --
      We are Turing O-Machines. The Oracle is out there.
    3. Re:I like this for Slashdot by TheSpoom · · Score: 1

      This functionality (or a version thereof) will be standard, as a new version of the discussion system is currently being tested by subscribers. You're able to hide an entire thread by clicking its title, if I remember correctly.

      --
      It's better to vote for what you want and not get it than to vote for what you don't want and get it.
      - E. Debs
    4. Re:I like this for Slashdot by Nicolay77 · · Score: 1

      That's very good news indeed.

      --
      We are Turing O-Machines. The Oracle is out there.
    5. Re:I like this for Slashdot by jZnat · · Score: 1

      Taco is way ahead of you on that one.

      --
      'Yes, firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
  36. Spinners? by NewmanBlur · · Score: 0, Offtopic

    I thought spinners were for 50 Cent's Escalade.

    --
    Per ardua ad astra.
  37. CSS Issues Have Not Been Solved by Mikey-San · · Score: 3, Insightful

    "In the early days of flat HTML, Internet Explorer rendered pages differently from Netscape. Those problems were fixed, but when support for CSS was added, new compatibility issues arose. Now most of the CSS issues have been solved, but JavaScript compatibility issues have cropped up."

    CSS compatibility issues have been worked around; they have not been "solved", and any quick trip through Position is Everything or A List Apart will show you that. JavaScript compatibility issues have also been around since the first days of JavaScript implementation in browsers.

    Neither are going to "be solved", especially if Microsoft have anything to say about it. Right now, as in the past, implementation differences equal a certain degree of lock-in. The truth is that no rendering engine provides a complete, perfect-for-intents-and-purposes CSS2 implementation, and IE is easily at the bottom of that pack. Combined with its field dominance, it is largely responsible for "CSS compatibility issues".

    IE 7 isn't going to provide a better rendering engine than Gecko, KHTML/WebCore, or whatever Opera's engine is called; it will simply address a list of the most important problems, such as the infamous box model fuck-ups. There will not be a "kickass" rendering engine in IE 7, and as much as I hate to say it, that's going to keep us in compatibility hack hell for the near future.

    Now, if you ask me--and obviously you did, right, lol internet_rant--Microsoft have had more than ample time, people, and resources to produce a rendering engine on-par with Gecko and its peers. But that's not going to be the case. Only one reason for that.

    CSS compatibility issues mostly solved? Not even close.

    --
    Mikey-San
    Karma: +Eleventy billion (mostly affected by watching Celebrity Jeopardy)
    1. Re:CSS Issues Have Not Been Solved by NoMoreNicksLeft · · Score: 1

      Now, if you ask me--and obviously you did, right

      Actually, I did, once upon a time.

      Microsoft have had more than ample time, people, and resources to produce a rendering engine on-par with Gecko and its peers. But that's not going to be the case. Only one reason for that.

      Wrong. They haven't had more. They've had INSANELY MORE time, people and resources. What's it been? 5 years now since the last major update? They're sitting on a warchest of $40 billion... and while they can't spend that on the browser alone, even a tiny chunk of it amounts to tens or hundreds of millions, numbers neither of us would be shocked if we learned this was how much was spent on IE7. And people? I mean, fuck. The IE7 team is hundreds in size, just at a guess. They can't compete with a bunch of hobbyist developers, or a tiny team of norwegians? Apple whipped out a kickass browser in what was probably less than a year.

      If Microsoft were the entire US military infrastructure, they just got routed by hooting and gibbering feces-covered cavemen, throwing rocks and small animal skulls. And by using the plural "cavemen", I mean exactly 2 of them.

      It makes no fucking sense. I don't expect anything great out of them. Lord knows I don't, not now. It makes DOS 2.1 look good, in comparison.

  38. Unnoticed? by billstewart · · Score: 1

    Ok, I don't notice casalemedia very often, but that's because I block them and their spammy popups. Arrrgh...

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  39. Crap Code Alert by porneL · · Score: 2, Interesting

    This code is crap. Use of <a href="javascript:"> makes it same quality as <marquee><font color="#ggggg">OMG Web 2.0!</td></font>

    Unlike TFA, here are some resources worth reading:

  40. Why I left front-end web development by onlyjoking · · Score: 3, Interesting

    I spent years wading through the quagmire of DHTML/CSS/Javascript compatibility issues and eventually realised that it was a full time job getting it right. 'Trouble was the job went largely unrewarded as the end user was only interested in how pretty it looked and it's difficult to get a client to pay you properly for time spent working round compatibility problems. Eventually I got wise and realised M$ had screwed up the CSS and Javascript game beyond recovery and decided to concentrate my energies where my time would be rewarded. I've been working with Perl, PHP, MySQL and PostgreSQL ever since and haven't looked back. For front-end design I keep it simple - basic CSS and no Javascript. That way I can sleep at night and wake refreshed to concentrate on the aspects of web development which add real value to a site. "Web 2.0" won't tempt me back into the fray as IE5/6 issues will haunt web developers for many years yet, regardless of what Vista and IE7 brings.

    One area of web development I think is very much neglected is semi-dynamic web development with Template Toolkit and cron. The content of many dynamic sites only changes periodically so it can often be better to have templates generate static pages periodically from your database with a cron script instead of coding the whole site in PHP, Perl/CGI or whatever.

  41. Javascript - Dangerous Nasty Security Risk! by billstewart · · Score: 1
    Having a front-end scripting language that lets you divide application processing between the front end and back end and a good clean data model for the communications between them is a really powerful concept, and it's no surprise that you can do cool things with Ajax.

    But having Javascript as the scripting language (instead of Java or some other decently secure language) is dangerous and nasty for the user who reads your website, because you're requiring the user to turn Javascript on to see your cool stuff, so unless the user is willing to do the work to configure site-by-site Javascript-enabling permissions, that means that when he later visits www.perfectly-harmless-looking-trustme.example.com , he's going to get annoying popups, ANNOYING BLINKY STUFF, and whatever other tricks the bad guys are pumping out this week.

    And yes, I know that Javascript lets you write perfectly safe code if you want to - it's also possible to write perfectly safe code in ActiveX, and I don't want to run that either. Java was written to provide safe ways to write code on web pages, with an underlying security model that AFAIK is still perfectly solid today, though as with anything there have been occasional implementation bugs. That's not an accident - Gosling's previous cool system, the NeWS windowing system, used Postscript as its native language, which gave you graphics that really rendered well, client-side scripting, much better control of dynamic actions that X (e.g. running the mouse tracking and rendering from the graphics server on your desk instead of running every mouse movement across the network twice the way X does), and the ability to write scripts that did all sorts of malicious things to the user. Because this was the 80s, and it was mainly used inside a few engineering companies and academia most of the maliciousness was limited to doing random blinky things to the victim's screen, like making all the pixels melt and drip down to the bottom of the screen or having cockroaches hiding under the windows that snuck out when you left them alone for a while, but the security risk was a real problem (and occasionally debugging could be difficult, because many of the opennesses in Postscript that allow malicious attacks also allow regular bugs to sneak in.)

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  42. I have No Script by mrmeval · · Score: 0, Flamebait

    No Script is Love

    --
    I'd go on a Vegan diet but the delivery time from Vega is too long. --brownkitty
  43. Re:I really use JavaScript a lot. by Gorshkov · · Score: 1

    I know this doesn't probably apply to you, given your target audience. But what you've done, I think, is generally a bad idea.

    Reality check: most of the world (about 80%, if I remember corectly) is still on dialup.

    That page comes in at 43K. The same page in HTML would probably be 2/3 less. When you're trying to sell stuff and keep people on your site, the difference between a 2-3 second download and a 8 second download is huge.

    Would it necessarily be as "pretty" as the javascript (or php, ajax, or "buzzword") page? Maybe, maybe not - but that's not the point. It doesn't matter wtf the page looks like if nobody's looking.

  44. Re:I really use JavaScript a lot. by mill · · Score: 1

    I think this says it all:

    <span class="h1">Who am I?</span>

    Or the fact that you don't even have a <body>.

  45. Re:I really use JavaScript a lot. by Saggi · · Score: 1

    You are right and wrong.

    It's true you need to keep an eye on the page size, but a standard slashdot frontpage with graphics is about 35 KB, so 44 KB is very close. And I do belive most of my audience read slashdot.

    Very often sending raw html javascript data fills up much less than the formatted page. The unit list is written with a few lines of javascript code, but if it should have been formatted and build on the server it would end up with a size off more than 44 KB.

    But you are right in the sense that you can't send a database with 2-3 MB. So it depends on the task rather than the audience.

    --
    -:) Oh no - not again.
    www.rednebula.com
  46. Re:I really use JavaScript a lot. by Gorshkov · · Score: 1

    Agreed. I was just trying to make the *general* point. Too many people worry about the l33t way of doing things without taking into consideration the people who will be viewing their pages .... which is the whole point to having a page in the first place.

    I think whaty ou've done is entirely appropriate for your application. But let's face it - if you put up a tutorial web page and used that as an example, it would only be a few days before we'd be flooded by 500 meg java pages that did nothing more than change the colour on some background somewhere.

  47. This is new?? by oaksong · · Score: 2, Funny

    I was doing some of this dhtml and java scripting 6 years ago. Where have these people been? (Oh! It's IBM. never mind)

  48. Javascript still sucks... by Anonymous Coward · · Score: 0

    ...totally unreliable.