rejetto forum
May 24, 2012, 05:28:15 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: problem with images  (Read 1814 times)
0 Members and 1 Guest are viewing this topic.
CeltiX
Guest
« on: April 15, 2006, 07:38:50 PM »

I have a html file that references to resources (images, etc.) in a sub folder, but they are not showing up on the page. Is there any way to correct this, or is it a limitation of HFS that it cannot follow references in html that lead to subfolders?
Logged
CeltiX
Guest
« Reply #1 on: April 15, 2006, 08:44:30 PM »

Progress report:

My previously mentionned symptom happens by default, but it loads correctly if I put a trailing " / " at the end of the URL. Any opinions or comments on this?
Logged
CeltiX
Guest
« Reply #2 on: April 15, 2006, 08:48:40 PM »

Sorry to pester, but yet another development:

The problem does not happen in folder trees that have no spaces in the names. If there are spaces anywhere in the filename structure, the trailing " / " has to be there or I will not see the images load.
Logged
maverick
Insane poster
*****
Offline Offline

Posts: 1056


Computer Solutions


View Profile
« Reply #3 on: April 15, 2006, 09:55:31 PM »

Quote from: "CeltiX"
The problem does not happen in folder trees that have no spaces in the names.
This might solve your problem:
Expert Mode -> Menu -> URL Encoding -> Encode Spaces
Logged

maverick
CeltiX
Guest
« Reply #4 on: April 15, 2006, 10:29:36 PM »

I thought that may have something to do with it, but there's no change. Either way, I still get spacers as %20 in the address bar, there's no other change. I've also tried every other possible combination of URL Encoding options to no avail.
Logged
Martok
Experienced poster
***
Offline Offline

Posts: 88

285180864
View Profile
« Reply #5 on: April 16, 2006, 04:39:03 AM »

What Browser are you using? FireFox needs the trailing /, but K-Meleon(another Mozilla derivate) does not need them.
Logged

Cheers,

Martok
rejetto forum
« Reply #5 on: April 16, 2006, 04:39:03 AM »

Do you like this software? Consider even $2
 Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #6 on: April 16, 2006, 10:10:45 AM »

i think yours is an HTML problem.
just ensure any resource you link is made available through HFS or another web server.
Logged
CeltiX
Guest
« Reply #7 on: April 16, 2006, 11:39:40 AM »

I'm not sure everyone understands, so I created an example on my server:
http://celtixnet.ca:88/HTML%20Problem%20example/Sample

The only difference between the 2 links is that one has a trailing slash, and one doesn't. Here are some facts that are good to know:

    I've confirmed this problem in both IE and Opera. (haven't tested Firefox)
    The pictures are in a subfolder called /photos.
    The default file mask is sample.html. I have tried wildcard matches as well, and different file names.
Logged
~GeeS~
Tireless poster
****
Offline Offline

Netherlands Netherlands

Posts: 269


"The web was made for sharing..."


View Profile
« Reply #8 on: April 16, 2006, 01:15:39 PM »

I think your problem is the incorrect use of html:

<img src="/photos/01.jpg" instead of <img src="photos/01.jpg" should be used to point to the pictures.
 
But I can be wrong, didn't have the time to look it up.
Logged

~GeeS~
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #9 on: April 16, 2006, 01:59:22 PM »

Quote from: "CeltiX"
I'm not sure everyone understands, so I created an example on my server:
good, so i can now say with no doubt that is an html problem Wink
it has nothing to do with HFS, the way HTML works demand you to put the opening slash in this case.
you would have the same problem with ANY browser and ANY server.
Logged
CeltiX
Guest
« Reply #10 on: April 16, 2006, 02:49:38 PM »

My standard web server does NOT cause this problem.

Links have been updated. All file structure is the same on both servers, simply the relative links are changed.

HFS Problem page: http://celtixnet.ca:88/Problem/Sample%20Problem
KeyFocus web server: http://www.celtixnet.ca/Problem/Sample%20Problem

Note:
KF Webserver does not remove the trailing slash when the link is clicked. However, removing ut manually clearly shows that another webser has no problem with missing trailing slashes.

Regardless, I am not looking to find fault anywhere. I beleive that there is an inconsistency in the way HFS produces the links. For the first level under the root, the links do include the "/". All other levels do not. If this could be uniform and the trailing slash added to all levels, this problem (and similar onws) could be avoided. Is this a possibility?
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #11 on: April 16, 2006, 04:20:15 PM »

thank you for the information furnished, now it is enough for me to see the problem.

the other webserver, when receiving a request withouth the trailing slash does not fullfil the request but answer with a redirection to the version with the slash.

the real problem in HFS is that it serves the request immediately without first redirecting the client. indeed, it is the client that forms URLs, and it forms wrong URLs if the slash is missing.

the best thing to do, AFAISee, is to behave the same way the other server do.

i will add this fix to the to-do list.
Logged
CeltiX
Guest
« Reply #12 on: April 16, 2006, 09:21:17 PM »

Great, thanks for your help and cooperation, I look forward to an update!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 22, 2012, 11:54:42 AM