homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

netscape background/bgColor
netscape seem to cache previous page's body tag

 11:01 am on Mar 26, 2001 (gmt 0)

Has anyone seen this problem before?
I have a page with a layer (the layer has an external source) and I change "src" with navigation buttons on the "parent page". Some layer source-pages has a body background picture, others have just a bgColor in body-tag (using stylesheet).
When I change layer source from one page that has background picture to a page with bgcolor, the background picture on previous page overrides the background color specified on current page.

I've tried to solve it by..
1. specifying body background on page instead of relying on stylesheet
2. using meta tag nocache
3. using javascript to specify bgcolor on <Body onLoad=..

None of the above helps solve the problem.




 11:10 am on Mar 26, 2001 (gmt 0)

Hi Katarina, and welcome to the forums!

Have you tried creating a 1x1 pixel gif in the color you want, and then defining that as the new background image? I think that would bump out the previous background image from the cache.


 11:21 am on Mar 26, 2001 (gmt 0)

Sort of - I made a one-colored picture the same size as the layer. That works, but of course making it 1x1 px is a lot smarter :-)

by the way - thanks for quick answer



 11:35 am on Mar 26, 2001 (gmt 0)

You're very welcome.

By the way, I've taken to always defining solid background colors with a gif. I feel it's a best practice. Many browsers don't render a defined hex color the same way they do a gif color, and on a 16-bit monitor you can get some ugly surprises.

Now your issue has given me one more reason to continue with this practice -- it may even be useful with pure white!


 3:28 pm on Mar 27, 2001 (gmt 0)

Hello Katarina. I see in your profile that you are a Lotus Notes/Domino programmer. Would you by any chance happen to know something that might help Margareta in this discussion [webmasterworld.com] about publishing tools? The reason I ask is that I once saw a site where Lotus Notes seem to form the backbone of a publishing process involving dozens of non-html trained editors.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved