Go Back   Velocity Reviews > Newsgroups > PERL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

PERL - Re: Including javascripts in HTML - it appears as the script never loads

 
Thread Tools Search this Thread
Old 07-19-2003, 03:30 AM   #1
Default Re: Including javascripts in HTML - it appears as the script never loads


Jim Rendant wrote:

> I have web pages broken down into several parts because most of it is
> dynamic. PERL creates all the dynamic data files and then prints them to
> STDOUT which is the browser. It appears as though the <script> tag never
> loads the upsalt.js file. I have
> included examples of the routine and files.

....
> Jim Rendant

....


The chances are pretty good that either your webpage1.txt is not in the
directory where your CGI script is looking for it, or your upsalt.js
file is not in the directory where the web server is looking for it.
These are web server configuration issues, not a Perl issue, and so is
offtopic for this newsgroup. Study your server docs carefully and if
you can't figure out where the files go, look at a web server
newsgroup's FAQ, like perhaps comp.infosystems.www.authoring.cgi, and if
you're still stuck, ask there.

If you're not using CGI and CGI::Carp qw(:fatalsToBrower), be sure to
add those, as it might give you insight into what is happening (like if
the open in your CGI script fails). In my particular case, when I ran
your code (with a header added), Carp showed very nicely that the open
was failing. Your code worked fine when I changed "webpage1.txt" to
"htdocs/webpage1.txt". In my case, the CGI script is looking for files
starting in the "server root" directory. That may vary with other web
servers or with web server configuration.

--
Bob Walton



Bob Walton
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump