Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Multiple script tags?

by peschkaj (Pilgrim)
on Oct 14, 2003 at 16:09 UTC ( [id://299163]=note: print w/replies, xml ) Need Help??


in reply to Re: Multiple script tags?
in thread Multiple script tags?

Thanks, this seems to do the trick:

print $q->start_html( -script=>[ { 'language'=>"javascript", 'type'=>"text/javascript", 'src'=>"png.js" }, { 'language'=>"javascript", 'type'=>"text/javascript", 'src'=>"mailForm.js" } ] );

Replies are listed 'Best First'.
3Re: Multiple script tags?
by jeffa (Bishop) on Oct 14, 2003 at 22:21 UTC
    Just a little TIMTOWTDI on a Tuesday afternoon:
    print $q->start_html( -script => [ map { language => 'javascript', type => 'text/javascript', src => $_, }, qw(png.js mailForm.js) ] );

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://299163]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-24 08:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found