[Pdx-pm] Perl CGI apps and javascript

Robert Shepard xeres at efn.org
Sat Mar 3 12:45:06 PST 2007


Heedlessly disregarding the word "correctly":

You don't really have to put <script></script> within the html 
<head></head>. Lots of people stick it inside the <body>, or even 
sometimes [horrors!] in between the </head> and <body>, and it still 
seems to run javascript.

You didn't hear this from me. We never had this conversation.

     R


>I hope there is a good way to do this.
>
>I have a very nice function in my CGI app that makes a nicely formatted
>table out of a few arguments, the title, an sql query, etc.
>If I want to make it sortable using dojo's javascript library, this requires
>me to place some javascript (that specifically references the table) in the
>header of the html, but typically, I've already printed the header by the
>time I want to generate the table.
>
>How is this done correctly?
>
>-ASC
>



More information about the Pdx-pm-list mailing list