Koozali.org: home of the SME Server

Web pages driving me nuts

Inhabitant of Zion

Web pages driving me nuts
« on: October 16, 2002, 06:50:14 PM »
Hi

Dunno what section this should come under did a bit of searching in archives but was getting nowhere slowly! Archives are only as good as the person using them - bit like computers really.

I have set up a web site for myself.

I did it on my wintel PeeCee for the simple reason I have Dreamweaver ultradev on there and I am lazy.

Now my web site uses a javascript for the navigation bar. Which has to be pointed to in the cource for the web page. Said .js file has to reside in the same folder as the HTML files which it does.

Now when I preview the site in IE6 and Mozilla (opera does not work but then when did it ever with .js?) I get the nav bar up fine. However when I view the file over the net there is no navigation bar. If I open the index.html from the shared network folder in primary/html I get the navigation ber.

I think the problem must be something to do with the link to the .js file. But I can't understnad why it works if you open the webpage direct from the folder and not when you put in the Ip or the URL...

Anybody got any ideas?

John

Barry Nesbit

Re: Web pages driving me nuts
« Reply #1 on: October 16, 2002, 08:21:18 PM »
What does the include statement for your .js file look like? You're probably using a directory name in the statement that is valid for your local machine but is not available through the web server.

If the .js file resides in /home/e-smith/files/primary/html/ then you shouldn't require any path information in the include statement:



Barry

Inhabitant of Zion

Re: Web pages driving me nuts
« Reply #2 on: October 17, 2002, 12:45:51 AM »
Cheers...

Src="file.js" worked a treat.

Who is now fat and happy again.

J