I'm trying to get a PERL CGI script to use a javascript src file, but it doesn't seem like any functions in the file get run. I'm actually using 3 different src files, and only 1 doesn't seem to be working.
Here's my CGI code:
print $q->header( -charset => 'UTF-8', ),
$q->start_html( -class => 'reporting',
-title => 'Reports',
-encoding => 'UTF-8',
-script => [ { -src => '/js/tool4.js' },
{ -src => '/UploadProgress/progress.
js' },
{ -src => '/UploadProgress/progress.
jmpl.js' },
],
-style => [ { -src => '/css/IEstyles.css', },
{ -src => '/css/styles.css', },
{ -src => '/UploadProgress/progress.
css', -rel => 'StyleSheet', -title => 'Default' },
{ -src => '/css/progress_blueblock.c
ss', -rel => 'Alternate StyleSheet', -title => 'Blue Blocks' },
{ -src => '/css/progress_bluebar.css
', -rel => 'Alternate StyleSheet', -title => 'Blue Animated Bar' },
],
),
The javascript in /UploadProgress/progress.j
s and /UploadProgress/progress.j
mpl.js are being called and are working correctly. It is the /js/tool4.js file that doesn't seem to be called correctly. I can't seem to figure out why one works and the other doesn't. If I just try /js/tool4.js above it still doesn't work...
In httpd.conf I have:
Alias /js /var/web/www/js/
Alias /UploadProgess /var/web/www/UploadProgres
s
Any thoughts?
Thanks.
Start Free Trial