Thread Mehrere Javascripts in cgi.pm header einbinden (3 answers)
Opened by Gast at 2009-01-27 13:20

GwenDragon
 2009-01-27 14:46
#118396 #118396
User since
2005-01-17
14767 Artikel
Admin1
[Homepage]
user image
Quote
The <script> tag, has several attributes including "type" and src. The latter is particularly interesting, as it allows you to keep the JavaScript code in a file or CGI script rather than cluttering up each page with the source. To use these attributes pass a HASH reference in the -script parameter containing one or more of -type, -src, or -code:
...
A final feature allows you to incorporate multiple <script> sections into the header. Just pass the list of script sections as an array reference. this allows you to specify different source files for different dialects of JavaScript. Example:

CPAN:CGI

View full thread Mehrere Javascripts in cgi.pm header einbinden