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

11 of 134 comments (clear)

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

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

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

  4. 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.
  5. 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.
  6. 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!

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

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