[ic] location of external JavaScript file not found

Ed LaFrance edl at newmediaems.com
Mon Nov 17 09:15:38 EST 2003

At 01:20 PM 11/16/2003 -0700, you wrote:
>(Interchange 4.9.9 from tar, Redhat 8.0, Perl 5.8.2)
>I am trying to use code like:
><script type="text/JavaScript" src="helo.js"></script>

Assuming that the  text file helo.js is under your http documents root, you 
would probably want to do:

         <script type="text/JavaScript" src="/helo.js"></script>

If your secure and non-secure documents roots are the same, this should be 
all you need to do. Otherwise you'll want to copy or symlink (if allowed) 
the helo.js file in the secure root as well.

If helo.js is not located (or symlinked from) the http documents space, 
none of this will work at all; in that case you'll want to [include] it 
into the page, or make a component for it, or store/retrieve it from a 
catalog variable - something of that nature.

- Ed L.

>Right now I am using "aboutus.html" for testing and have
>this html in the "content" section of page.
>When the page is pulled up I get a "syntax error on line 6"
>blah blah.
>this message is not too helpful. I know javascript works,
>I use script instead of file reference. Besides it doesn't
>much more basic than this!
>The httpd logs do not give an error (eg file not found).
>The contents of helo.js are:
>document.write("Hello World")
>I have tried every location I can think of to put the script
>file and then
>reference that location in the "src=" field. No luck.
>I have tried changing permissions. No luck.
>Does anybody have any clues here. Help would be much
>interchange-users mailing list
>interchange-users at icdevgroup.org

New Media E.M.S.              Technology Solutions for Business
11630 Fair Oaks Blvd., #250   eCommerce | Consulting | Hosting
Fair Oaks, CA  95628          edl at newmediaems.com
(916) 961-0446                http://www.newmediaems.com
(866) 519-4680 Toll-Free      (916) 961-0447 Fax

More information about the interchange-users mailing list