[thelist] Re: Message: 33 - Re: Trying to include multiple JavaScript files in a perl script...

Rajinder Joat raj at e-worksmedia.com
Fri Nov 30 12:45:00 CST 2001


>  >I'm trying to include a .js file into a cgi script (that produces HTML
>  >output for the browser, obviously)...
>
> What is the syntax that you are using?

The same syntax that you would use in an HTML document....but don't think
that I'm being completely stupid by putting that syntax in the perl
script...that's *not* what I'm doing.

The Search script lets you put snippets of code (HTML) that formats the
search results...and in that formatting you put variables in the form of:
%relevance%
That is parsed by the perl script, and replaced with the relevance of that
search result...(looped through for each search result.)

One of the things I'm trying to put into the script, along with the rest of
the HTML formatting it allows you to put, is a call to a JS file. Like so:
<SCRIPT LANGUAGE="JavaScript1.2"
        SRC="/HM_Loader_seconds.js"
        TYPE='text/javascript'>
</SCRIPT>

hmm...I wonder if the quotes (single and/or double) are causing it to
choke....






More information about the thelist mailing list