Stories
Slash Boxes
Comments
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

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

Ovid
  (email not shown publicly)
http://publius-ovidius.livejournal.com/
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Wednesday February 05, 2003
07:16 PM

Too much juggling

[ #10422 ]

My brain is going to melt today. I'm using Perl to execute SQL, with results that get passed to Template Toolkit, that uses the results to write JavaScript to rewrite HTML on the fly. Every once in a great while I miss writing batch processes in COBOL.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • now get your javascript to write out tags that call a perl script that writes out javascript which is the result of a database call and changes the page further and you'll understand a project I worked on :)
    • We have a problem whereby a country might have states and it might not. We have to populate a selection box based upon that. Thus, with an onchange event with the country select box, we use javascript to detect if the country has states (using a hash of country IDs) and if it does, we launch a pop up with a drop down (populated by a database call :) that allows the user to select a state and then write that state back to the original form via DHTML.

      Oh, and due to DHTML issues with the cascading menus (a

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

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

        Dat