calling all Javascript boffins...

calling all Javascript boffins...

Author
Discussion

polar_ben

Original Poster:

1,413 posts

261 months

Tuesday 23rd September 2003
quotequote all
Why can't I get this to work properly?

www.northpole2003.com/test/images.htm

rather proud with the rest of it, though - all xhtml, CSS and not a table in sight

edit to add - it's very much a work in progress - ignore most of the text...



>>> Edited by polar_ben on Tuesday 23 September 12:20

>>> Edited by polar_ben on Tuesday 23 September 12:21

Bonce

4,339 posts

281 months

Tuesday 23rd September 2003
quotequote all
What's not working? Can't see any JS errors...

Do you mean the image popup? If so, could it be because it's trying to load "images/2003-02.jpg" instead of "tmbs/2003-02.jpg" ?

Edited to say: Nice site! Bloody good work for a madman.

>> Edited by Bonce on Tuesday 23 September 12:48

FourWheelDrift

88,775 posts

286 months

Tuesday 23rd September 2003
quotequote all
The pictures right? Some load up some don't - 404 file not found error.

Obvious to say, I'd triple check you have uploaded the images.

Edited as bonce beat me. didn't notice the thmbs images bit. Doh!

>> Edited by FourWheelDrift on Tuesday 23 September 12:48

Plotloss

67,280 posts

272 months

Tuesday 23rd September 2003
quotequote all
Images are there, I can get it to work and fail but not in any sort of order.

BTW turn directory browsing off on test/images...

polar_ben

Original Poster:

1,413 posts

261 months

Tuesday 23rd September 2003
quotequote all
I think I've sussed it - some are .jpg, some are .JPG

polar_ben

Original Poster:

1,413 posts

261 months

Tuesday 23rd September 2003
quotequote all
Plotloss said:

BTW turn directory browsing off on test/images...


how do I do that?

Plotloss

67,280 posts

272 months

Tuesday 23rd September 2003
quotequote all
Good one.

JScript is also browser sensitive, Netscape for example doesnt support all the properties...

Plotloss

67,280 posts

272 months

Tuesday 23rd September 2003
quotequote all
Whats the web server?

If it IIS its in the properties of that virtual directory within the MMC.

If its Apache I believe its some switch in a file with an enormously complicated name.

BONCE!

Bonce

4,339 posts

281 months

Tuesday 23rd September 2003
quotequote all
Apache? :shrug: m'dunno!

BTW, for me the images that don't work have "/test/" in their path.

Bonce

4,339 posts

281 months

Tuesday 23rd September 2003
quotequote all
T'internet said:

In your apache conf (usually /etc/httpd/conf/httpd.conf unless set to some
other location) look for the root <Directory....> directive.
There is probably a line similar to:


Options Indexes Includes FollowSymLinks ExecCGI


Remove the 'Indexes' parameter from this line. What this does is if the
URI requested is a directory and there is no index document (usually
index.html or some derivation), then it will display an index of file
listing for that directory.


I'm not sure about how you would "limit" this so that only internal users
could see the index and externals could not. I am sure that there is a
way to do that, but I am not positive what the method is. You can also
limit individual directories with:


<Directory "/my/path/to/an/individual/directory/">
Options -Indexes
</Directory>


The '-' before Indexes removes that option. Directory directives are
nested. Ie, the one that defines options for the web root defines those
options for all files and directories under it. The example above defines
additional parameters for itself and all below it as well.

Plotloss

67,280 posts

272 months

Tuesday 23rd September 2003
quotequote all
Oooh you clever bugger...

polar_ben

Original Poster:

1,413 posts

261 months

Tuesday 23rd September 2003
quotequote all
Plotloss said:
Whats the web server?

If it IIS its in the properties of that virtual directory within the MMC.




Unix - Mandrake 8.1, apparently (means nothing to me)

the /test/ bit should be fixed - try refreshing it...

Plotloss

67,280 posts

272 months

Tuesday 23rd September 2003
quotequote all
BODO!

I am afraid one needs a beard to be any further assitance.

Linux indeed!

polar_ben

Original Poster:

1,413 posts

261 months

Tuesday 23rd September 2003
quotequote all

polar_ben

Original Poster:

1,413 posts

261 months

Tuesday 23rd September 2003
quotequote all
Plotloss said:
Linux indeed!


Google to the rescue - needed a .htaccess file.

Sorted.

Bodo

12,384 posts

268 months

Tuesday 23rd September 2003
quotequote all
Plotloss said:
BODO!

I am afraid one needs a beard to be any further assitance.

Linux indeed!
Yes, I have a (short) beard (only because I couldn't be bothered to shave me every morning), but I have NO SANDALS, and I drink NO REAL ALE (what's that anyway?)

Isn't Apache the same on Unix and Windows?
I haven't worked with Apache yet, but it's installed together with the documentation on my current machine. Anyway, nice you sorted it, Ben