homepage Welcome to WebmasterWorld Guest from 54.161.147.106
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 / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
css
using css on mac in netscape(problems)
theebalinda




msg:1197530
 2:27 am on Apr 11, 2002 (gmt 0)

We have a problem.

Our CSS is not being read in netscape on
a mac when the browser window is resized. it is read when the refresh button is hit.

We are using a linked style sheet within a frameset.

If anyone has had this problem or knows how to fix it please let us know ASAP!!

-thanks,
TheebaLinda

 

tedster




msg:1197531
 2:52 am on Apr 11, 2002 (gmt 0)

Welcome to the forum, theebalinda

This is a documented (and often complained about) problem with Netscape. It's complicated here by the fact that you are using a frameset. Assuming that you are allowing the user to resize the individual frames, I would try modifying both the <frameset> tag in the principal document and the <body> tag in all the individual HTML docs:

<frameset onResize="history.go(0)">
or
<body onResize="history.go(0)">

I think this will work, no matter what the present configuration of child pages is in your frameset. Please, let us know if that solves your problem. Thanks!

pageoneresults




msg:1197532
 3:59 am on Apr 11, 2002 (gmt 0)

Hey tedster, that is the leanest NN Resize Fix that I've seen in the all the research I've been doing. Most of what I'm finding are JavaScript resize fixes and contain quite a few more lines of code. Thank you!

P.S. If I have an onLoad event already in my <body>, would I put that before or after the onResize? Or does it really matter? Are there limits on the number of events in a <body> tag?

T Suresh Babu




msg:1197533
 4:25 am on Apr 11, 2002 (gmt 0)

<frameset onResize="history.go(0)">
or
<body onResize="history.go(0)">
<<

The above lines of code may be single line fix.
But it affects IE also.
(ie) while resizing a IE window it doesn't reloads the page but simply resizes the page without any problem.

If the page have many images or size of the page is large then the above solution is odd for IE. So javascriot NN resize fix is suitable in that case. Since it reloads the page if it is Netscape Only.

tedster




msg:1197534
 5:18 am on Apr 11, 2002 (gmt 0)

You're right T_Suresh_Babu. Adding a browser sniff makes good sense. I understand that this bug even shows up in the latest Netscape versions, so a very simple UA sniff would work.

theebalinda




msg:1197535
 2:55 pm on Apr 12, 2002 (gmt 0)

Wow; resize works.. beautifully!!!!

Thanks!!!!

pageoneresults




msg:1197536
 9:22 pm on Apr 12, 2002 (gmt 0)

Here is the JavaScript NN Resize Fix...

<!-- Begin 

function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

userAgent = window.navigator.userAgent;
browserVers = parseInt(userAgent.charAt(userAgent.indexOf("/")+1),10);
function findElement(n,ly) {
if (browserVers < 4)return document[n];
var curDoc = ly ? ly.document : document;
var elem = curDoc[n];
if (!elem) {
for (var i=0;i<curDoc.layers.length;i++) {
elem = findElement(n,curDoc.layers[i]);
if (elem) return elem;
}
}
return elem;
}

// End -->


Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
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