RE: javascript within print "<

2001-06-14 Thread Tillema, Glenn
> The CGI module is not supposed to export any functions > without their being explicitly requested. > Maybe you have a version that someone else hacked? No matter. I honestly wouldn't know .. all of the functionality seems to be there. > > > Also, since you are already using CGI.pm, why not

RE: javascript within print "<

2001-06-13 Thread Curtis Poe
--- Curtis Poe <[EMAIL PROTECTED]> blathered: > If it's printing out your tags in lower case, you definitely have an issue with >CGI.pm. [snip] Ugh. That should have read "If it's *not* printing out your tags in lower case...". Cheers, Curtis Poe = Senior Programmer Onsite! Technology (ht

RE: javascript within print "<

2001-06-13 Thread Curtis Poe
--- "Tillema, Glenn" <[EMAIL PROTECTED]> wrote: > > As written, this script won't work. If you call the > > 'header()' function directly, you need to > > import this function from CGI. One way to do it is: > > > > use CGI qw/:standard/; > > It works in the script I copy and pasted from ... :)

RE: javascript within print "<

2001-06-13 Thread Tillema, Glenn
> As written, this script won't work. If you call the > 'header()' function directly, you need to > import this function from CGI. One way to do it is: > > use CGI qw/:standard/; It works in the script I copy and pasted from ... :) > Also, since you are already using CGI.pm, why not take >

Re: javascript within print "<

2001-06-13 Thread Vinicius Jose Latorre
WebMaster AIM-US <[EMAIL PROTECTED]> wrote: > Another option is to put the JavaScript in the text file, and have Perl > read from that file, and print it directly. This means you can re-use the > JavaScript code in other similar script without needing to edit each script > whe

RE: javascript within print "<

2001-06-12 Thread Curtis Poe
--- "Tillema, Glenn" <[EMAIL PROTECTED]> wrote: > Here is how I do it; > > #!/usr/local/bin/perl -w > use CGI; > > print header(); > print "\n", > " test script\n"; > print < >alert('test'); > > DONE > print "\n"; As written, this script won't work. If you call the 'header()' fun

Re: javascript within print "<

2001-06-12 Thread Justin Simoni
> open(JAVASCRIPT, "javascript.js"); > while(){print $_} > close(JAVASCRIPT); that's wasteful, HTML already has the tag attribute. -- justin simonihttp://skazat.com __ Steven Wright:

RE: javascript within print "<

2001-06-12 Thread Tillema, Glenn
Here is how I do it; #!/usr/local/bin/perl -w use CGI; print header(); print "\n", " test script\n"; print < alert('test'); DONE print "\n"; cheers, Glenn Glenn Tillema [EMAIL PROTECTED] ADC Telecommunications, Inc. PO Box 1101, MS 508 Minneapolis, MN 55440-1101

Re: javascript within print "<

2001-06-12 Thread Luinrandir Hernson
Just call it from perl print "\n\n"; print "web site\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; exit; - Original Message - From: [EMAIL PROTECTED] To: CGI Beginners Sent: Tuesday, June 12, 2001 4:41 PM Subject: ja

Re: javascript within print "<

2001-06-12 Thread WebMaster AIM-US
Another option is to put the JavaScript in the text file, and have Perl read from that file, and print it directly. This means you can re-use the JavaScript code in other similar script without needing to edit each script when the JavaScript need changing: open(J

Re: javascript within print "<

2001-06-12 Thread Justin Simoni
try something like this: #!/usr/bin/perl use CGI qw(:standard); $javascript = <$javascript); print p(a({-href=>'javascript:annoy()'}, "Click me to be annoyed")); -- justin simonihttp://skazat.com __