[Pdx-pm] CGI.pm question about start_html(-script)

Thomas J Keller kellert at ohsu.edu
Mon Jul 19 14:26:52 CDT 2004


Greetings CGI.pm users,
I would like to call more than one external javascript script in a 
workrequest form I'm writing using CGI.pm. How do I code that in the 
start_html() method?

I've tried giving the -src argument  of -script an anonymous array:
	-script=>{'-language'=>'JavaScript',
	'-src'=>[ 	'http://www.ohsu.edu/include/header_alt.js',
			'http://www.ohsu.edu/research/core/verify.js',
			'http://www.ohsu.edu/research/core/verify2.js',]
		}

And I've tried giving -script an anonymous array:
	-script=>[	{'-language'=>'JavaScript',
			'-src'=>'http://www.ohsu.edu/include/header_alt.js',
			}, {'-language'=>'JavaScript',
			'-src'=>'http://www.ohsu.edu/research/core/verify.js',
			}, {'-language'=>'JavaScript',
			'-src'=>'http://www.ohsu.edu/research/core/verify2.js',
			} ]
But neither approach works. I'm thinking that a list of input is not 
accepted, or I'm missing something basic.

Can you help me with this?
Thanks,
Tom Keller





More information about the Pdx-pm-list mailing list