class styles stop working when upload to server

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
garry27
Forum Commoner
Posts: 90
Joined: Sat Oct 14, 2006 1:50 pm

class styles stop working when upload to server

Post by garry27 »

I've got a simple javascript table which uses styles that allows you to move rows up and down a table. It works fine if I load it locally but if I upload the files to a remote server and access them, the dynamic stuff stops working. here's the url address I'm testing it at:

http://www.nl-webspace.co.uk/~unn_p921847/s2/st/tbl2

Please somone take a look and advice me on how I can fix this.

Garry
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Post by califdon »

You don't seem to have your "common.css" file loaded in the same directory as your html page.
garry27
Forum Commoner
Posts: 90
Joined: Sat Oct 14, 2006 1:50 pm

Post by garry27 »

the example i've referenced uses embedded styles, decalred in between style tags. the common.css file has nothing to do with the script. i've removed it anyway just to make sure. like i was saying, the page works when i open it through a browser locally but not over a remote connection.
garry27
Forum Commoner
Posts: 90
Joined: Sat Oct 14, 2006 1:50 pm

Post by garry27 »

my mistake. what i meant to say was, i'v now removed the script element that calls the "common.css" file
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

garry27
Forum Commoner
Posts: 90
Joined: Sat Oct 14, 2006 1:50 pm

Post by garry27 »

it's definitely there-in the same root directory. for some reason it won't open in IE but it does open in firefox.
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

It doesn't work in firefox, see the picture i linked to below...

The file cannot be found...

Don't just assume that you uploaded it. You didn't, or you did but the filename is different, or the path is incorrect.

Here's proof... http://jefs.com/nick/Untitled-1.gif
garry27
Forum Commoner
Posts: 90
Joined: Sat Oct 14, 2006 1:50 pm

Post by garry27 »

aye, it was the wrong file name on the server end.

sorry for that. my debugging skills aren't the greatest.

:wink:
Post Reply