Forum Moderators: open

Message Too Old, No Replies

calling external .js file

calling external .js file

         

mikemca

1:02 pm on Dec 3, 2003 (gmt 0)



Hi all,

I'm quite new to javascript so please excuse my ignorance.

I have a slight problem concerning calling an external .js file with Netscape Navigator 7.1

When I have the external file in the same directory on my server as the calling html page there is no problem but when I try to call an external file from another directory (I store my external files together in a directory call javascripts) the page does not load the external script in Navigator.

There is no problem with IE.

Can anyone offer me any solution, help or advice?

Thanks in advance.

Mike

Sinner_G

1:05 pm on Dec 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Should be no problem if you call the file like this:

<script type="text/javascript" src="javascripts/filename.js"></script>

Elijah

1:06 pm on Dec 3, 2003 (gmt 0)

10+ Year Member



It may be a problem if your are not specifying the type.

Instead of this

<script language="JavaScript"

Try this:

<script language="JavaScript" type="text/javascript"

Edit: Sorry Sinner_G, We posted at the same time.