kdmurphy001 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
Hoping you can help me out as I've been unable to resolve an issue I'm having.
I have a CGI script that is calling a rather simple javascript file. Both are stored locally on the same server in the same directory. The script (the CGI part) runs fine and does what it's suppose to but when the javascript portion is called it throws the following error:
Not a CODE reference at /xxxx/www/docs/xxxx/internal/xxxx/test.cgi line 48.
Here's the portion of the code calling the js script.
if ('20'.$Menu_Year == $Default_Year && $Menu_Month >= $Default_Mo +nth && $Menu_Day >= $Default_Day) { print $cgi->(-title=>'Pop-up Window', -script=>{-language=>'javascript', -type=>'text/javascript', -src=>'http://s-internal.xxxx.com/xxxx/pop-up.js'});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl, CGI, and calling a JS (javascript) file
by tobyink (Canon) on Mar 28, 2012 at 12:30 UTC | |
|
Re: Perl, CGI, and calling a JS (javascript) file
by Anonymous Monk on Mar 28, 2012 at 12:26 UTC |