Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Depending on your miniumum level of browser support you might find is simpler and more portable to have the javascript manipulate the DOM directly. IE 5.5 and Mozilla 1.whatever both have pretty complete DOM support (except for Microsoft's propriatary event stuff).
    Plus it really cuts down on the hardest part of the perl-that-generates-html-that-contains-javascript-the-generates-html-that-contai ns-javascript parentheses-nesting nightmare.
    With the O'Reilly Dynamic HTML book (2nd edition) it's easy to cut th
    • One of my coworkers was mentioning that book today. Sigh. More money to spend.

      I'll have to check out that module, too. I've not heard of it.

      • Re:A Suggestion (Score:2, Interesting)

        by dreadpiratepeter (2770) on 2003.02.06 1:07 (#16756)
        "Dynamic HTML: The Complete Reference" would be a bargain if they priced it at $500 dollars, in the 6 months I have had it, I would estimate that it has saved me at least 20 hours of billable time (probably more). Multiply that by the billing rate of your choosing and calculate it's value. It details every last nook and cranny of HTML, the DOM, all the event models, CSS and JavaScript Core Classes. And it documents what works and doesn't work in every resonable version of IE, Mac IE and Netscape/Mozilla

        Data::Locations allows you to collect text and allows you to define insertion points into which you can insert text within the main flow. It treats these as file handles you can write to. For example, I have a $style, $script, and $body handle All the HTML scaffolding around them is built at the top of my script. I can output these three blocks sequentially even though I intermingle writes to each of them throughout the course of writing my page. I then dump the location buffer and get a page.

        Of course this has the bad effect that I can't flush the buffer to give the appearence of progress to the browser, but on the other hand I generate much smaller cleaner code with 1 style and 1 script block, rather than lots of little blocks, so the page downloads faster and renders faster.