Gossamer Forum
Home : Products : Links 2.0 : Customization :

Broken images with FORM

Quote Reply
Broken images with FORM
Hi!

For example, try searching "weather" (without quotes) at:

http://cgi.webcamworld.com/directory/search.cgi

You'll get a results page with broken images everywhere.

However, if you get the resulting URL, http://cgi.webcamworld.com/directory/search.cgi?query=weather and enter it DIRECTLY on a browser window, images are fine!

ideas???


I guess it has something to do with the fact that I use .htaccess to define an alias on where to look for the images (as they don't reside on cgi.webcamworld.com/images/) but I wonder WHY do they work when they're NOT called from a FORM

(aka try http://cgi.webcamworld.com/directory/add.cgi or http://webcamworld.com/directory/Europe/ as examples!)

Ideas?

Thanks!



Quote Reply
Re: Broken images with FORM In reply to
Any .htaccess guru in here?

Problem seems to come from the fact that I've set up links on http://cgi.domain.com/ and web pages are built at http://www.domain.com/directory, so to avoid using absolute paths to the images of the web pages, I used a .htaccess trick (redirect any cgi.domain.com/images/ to www.domain.com/directory/images/).

This seems to work but not 100% efficently as for the problem stated above.

IDEAS?

Thanks!!


Quote Reply
Re: Broken images with FORM In reply to
I just tried your above "test" and the only broken images were "webcam" images linked to other web sites. Am I missing something?

Regards,

Eliot Lee Wink
http://anthrotech.com/
Quote Reply
Re: Broken images with FORM In reply to
Hi!

Mmmmmmm....... may be entering the site cgi directly affects the resutls...

Let's see, can you please try this?

1. go to www.webcamworld.com
2. enter "weather" (no quotes) on the top Cam Search box
3. Does the result page have broken images everywhere, in addition to the WebCam ones?

If anyone else can test this too, I'll thank him/her! ;)

Thanks!


Quote Reply
Re: Broken images with FORM In reply to
I just did a search on your site. Apart from a webcam graphic off your site there are no broken images.

Thomas
http://links.japanref.com
Quote Reply
Re: Broken images with FORM In reply to
Amazing!

I simply don't get it. Some users do report this problem and you definetly see the images...

Can you give me an email address I can send you what I see, and may be we match the problem?

Which OS and browser are you using?

Thanks!


Quote Reply
Re: Broken images with FORM In reply to
Yeah same with me - only one broken webcam image, the rest are fine.

Win98, IE 5.5

Installations:http://www.wiredon.net/gt/

Quote Reply
Re: Broken images with FORM In reply to
I tried with IE 6.0b and NS 4.76 (Win98) - no probs.

Thomas
http://links.japanref.com
Quote Reply
Re: Broken images with FORM In reply to
Ok,

Still stunning.

I do run Win98 and IE 5.5 at home, and IE 5.5 and W2000 here, and I do get the results shown in the following image, I'd thank you if you visit it and let me know that THAT's NOT what you're getting once you CLICK on the search button.

http://webcamworld.com/images/error.jpg

If any one else can try this out please, include OS and browser.

Thanks!!


Quote Reply
Re: Broken images with FORM In reply to
We've already said that we see the images.

Why not right click the dead images to see where they are pointing.

Installations:http://www.wiredon.net/gt/

Quote Reply
Re: Broken images with FORM In reply to
HI!

Already did that (was the first thing i did) and u'll notice there's no difference (path speaking) between the /add.cgi page and the search results page. BUt I keep getting broken images.

May be it has something to do with (server) cache?

I flushed browsers' one but still getting the same.







Quote Reply
Re: Broken images with FORM In reply to
Make sure that the images use the full url (instead of the alias you created) and then you won't (or shouldn't) get dead images.

Installations:http://www.wiredon.net/gt/

Quote Reply
Re: Broken images with FORM In reply to
Paul is right. Looks to me as if you are using subdomains. So either you use the full URL path to your root image directory or you create an additional image directory in each of your subs.

Thomas
http://links.japanref.com
Quote Reply
Re: Broken images with FORM In reply to
Hi!

Problem is that then I'd need to create a subdirectory called images in EVERY directory (category) links generates (thus, adding that manually each time a new category is created).

And I don't wanna repeat the same files for the same directory 200+ times!

Using full urls is not good for a server. It slows down the server as every http:// needs to be treated as a single thread. Using relative paths solve this, but at least I can't see the images (still no explanation on why the rest of the audience does see the images!).

Thanks.


Quote Reply
Re: Broken images with FORM In reply to
 
Does anybody else have Links set up with templates, calling images with relative paths and not suffering this problem?



Quote Reply
Re: Broken images with FORM In reply to
Yep...I do...

http://vlib.anthrotech.com
http://members.anthrotech.com

Regards,

Eliot Lee Wink
http://anthrotech.com/
Quote Reply
Re: Broken images with FORM In reply to
Er...


Forgot to add: "And using subdomains, specially on the CGI directory?" ;)

THnks!