Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Browser compatibility

Quote Reply
Browser compatibility
Just in case anyone's interested, you should take an extra step when inserting images into your templates. I have found that if you use relative links for your images in the templates, they will not show in Netscape 4 and 4.7 !!!

I've had to change them all to absolute links.
Just in case anyone's interested....Smile
Quote Reply
Re: [ceniti] Browser compatibility In reply to
Do you mean things like ../image.gif or /images/image.gif ?
Quote Reply
Re: [RedRum] Browser compatibility In reply to
Hmm. I've changed them all so I'm trying to remeber how it was. I believe it was /images/image.gif. Would it have worked if I used ../images/image.gif ?
Quote Reply
Re: [ceniti] Browser compatibility In reply to
Those two examples you gave have different meanings.

Netscape would have terrible complaints if paths like /images/image.gif didn't work.

Perhaps you had ../path/image.gif but the relativity was incorrect?...or was it something I did?

Last edited by:

RedRum: Feb 14, 2002, 5:57 AM
Quote Reply
Re: [RedRum] Browser compatibility In reply to
Actually, Paul, as I think about it, I'm pretty sure now it was originally /images/image.gif. I remember because I went through the entire code pasting http://www.waterwater.ca before it. I did not have to remove any ".."
Quote Reply
Re: [ceniti] Browser compatibility In reply to
That should have worked fine.

/images/image.gif

is the same as

http://www.waterwater.ca/images/image.gif

Strange.

If you ever have such a problem again, instead of updating each link you can add this to the page head:

<BASE HREF="http://waterwater.ca">

Last edited by:

RedRum: Feb 14, 2002, 6:18 AM
Quote Reply
Re: [RedRum] Browser compatibility In reply to
Great tip, Paul, I will remember that for the future.

BTW, /images/image.gif does work. It works in IE, and in NS6. Just not in NS4 and NS4.7.

Did I mention I hate NS?? Mad
Quote Reply
Re: [ceniti] Browser compatibility In reply to
Works fine in my sites (that use Links 2.0) with Netscape 4.X. The BASE HREF suggestion is a good one.

One suggestion...you may want to use a global tag for your images, so that you only have to edit the location/file name in the links.cfg file rather than manually going through your template files (unless you are using headers/footers).
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Heckler] Browser compatibility In reply to
Yes, actually I'm using header and footer, so I only had to edit these 2 files.

Hmm, I wonder why it worked for you in NS4.x but not for me?

Did I mention I hate NS ??
Quote Reply
Re: [ceniti] Browser compatibility In reply to
How about uploading as an attachment an example template file that you edited? So, that we can evaluate the codes.
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Heckler] Browser compatibility In reply to
Here you go.
Quote Reply
Re: [ceniti] Browser compatibility In reply to
I don't think you understood me...I meant uploading an example file that you used "relative paths" to your images. The file you posted is using absolute paths for your images.

Got it?
========================================
Buh Bye!

Cheers,
Me

Last edited by:

Heckler: Feb 14, 2002, 7:55 AM
Quote Reply
Re: [Heckler] Browser compatibility In reply to
Sorry, I see what you mean. Well, seeing as how I changed everything to absolute links, I have nothing left to send you that has relative ones...
Quote Reply
Re: [ceniti] Browser compatibility In reply to
In Reply To:
Sorry, I see what you mean. Well, seeing as how I changed everything to absolute links, I have nothing left to send you that has relative ones...

Always best to keep back-ups of your files as you work on them...I always keep back-ups of files before editing them (Software Development 101).

Read the FAQ in the Resources section about making modifications in Links 2.0. for more information on helpful hints with customizing your version of Links 2.0.
========================================
Buh Bye!

Cheers,
Me