HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 13th, 2000, 04:24 PM
ecastanedo ecastanedo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Location: Los Angeles, California
Posts: 102 ecastanedo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 10 sec
Reputation Power: 9
Can anyone help me with this problem. Everytime I resize NETSCAPE, the layers on my page DISAPPEAR!!!

Thanks in Advance,

ecastanedo

[This message has been edited by ecastanedo (edited April 13, 2000).]

Reply With Quote
  #2  
Old April 13th, 2000, 04:57 PM
Spookster Spookster is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 1999
Posts: 84 Spookster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
try adding this to your body tag:

<body onResize="window.reload();">

Spookster

Reply With Quote
  #3  
Old April 14th, 2000, 07:19 AM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
although this will still cause errors in most NS versions as it will relaod the page several times for no apparant reason - so try

function (NSized){
function resized(){
if(pageWidth!=innerWidth | | pageHeight!=innerHeight){
location.reload()
}
}

if(document.layers){
pageWidth=innerWidth
pageHeight=innerHeight
window.onresize=resized
}}

and stick onload="NSized" in your body tag
eeeeerrrr + note document.layers soon to be useless.


------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL

Reply With Quote
  #4  
Old April 14th, 2000, 07:20 AM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
ooooopps "NSized()" !!!!

Reply With Quote
  #5  
Old April 14th, 2000, 11:44 AM
ecastanedo ecastanedo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Location: Los Angeles, California
Posts: 102 ecastanedo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 10 sec
Reputation Power: 9
I'm finding out that the problem runs a little deeper than I thought.

I am responsible for taking content from one page and making it work on another. The code that I am using was created by someone else and happens to work fine on a remote site, i.e., the original code does not make the layers disappear when the browser is resized. It isn't until I copy the code from the other site and place it on our server that I get these problems with the layers.

Maybe the problem has to do with the servers we use, which run Java Server Pages, but that doesn't make sense since the browser is what actually interprets the code.

In all, this problem is becoming more of a problem only because there is no difference between the code on the remote site and the code on our site. The only difference is that the layers on our page disappear in Netscape when we are running the code on our servers.

Whew... I'm done.

Thanks in advance for anyone who can help with this...

ecastanedo

[This message has been edited by ecastanedo (edited April 14, 2000).]

Reply With Quote
  #6  
Old April 16th, 2000, 01:07 PM
Carnes Carnes is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 2 Carnes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
There's no problem with your code... this is actually a known bug with Netscape 4.xx. Resizing a window trashes layers.
I would suggest using Firepages' code, as Spookster's will refresh the page anytime the window is resized, whereas Firepages' will only refresh it if the page is actually resized (as opposed to just clicking the resize tab)

If you happen to use Dreamweaver 3, under Commands there is actually an "Add/Remove Netscape Resize fix", which basically adds or removes the same code.

Reply With Quote
  #7  
Old April 18th, 2000, 08:52 AM
gmiller gmiller is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Posts: 5 gmiller User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
It's worth noting that any page that relies on layers won't work on Netscape 6.0.

Reply With Quote
  #8  
Old April 18th, 2000, 01:18 PM
Argrajoca Argrajoca is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: SPAIN
Posts: 47 Argrajoca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Even with a javascript function that corrects it (like Firepages' one) there's still one reason that (sometimes) can make the layers dissapear: When the page is inside a frameset. In this case, you have to move the function to the frames page.


Reply With Quote
  #9  
Old April 19th, 2000, 07:02 AM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
layers and nested layers will and do work in Netscape6 using layered DIV /DIV's . Netscapes very own <layer> tag will not be supported, it is just a lot of sites test for Netscape using the if(document.layers) sniffer which will be redundant in NS6 which was always a bad idea(I use it all the time !) but whoever thought that NS would throw it away? - NS6 even does IE only mouseovers! hmmmmmmmmmm.

Simon


------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL

Reply With Quote
  #10  
Old April 20th, 2000, 12:28 PM
ecastanedo ecastanedo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Location: Los Angeles, California
Posts: 102 ecastanedo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 10 sec
Reputation Power: 9
Thanks everyone for your replies. I just figure out the problem. Netscape being very picky, I realized that I was missing a closing </td> tage in my code. That completely threw everything off. Layer and Netscape are extremely fussy when you happen to miss something like that...

Reply With Quote
  #11  
Old June 28th, 2000, 05:31 AM
Falken Falken is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 1 Falken User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by Argrajoca:
Even with a javascript function that corrects it (like Firepages' one) there's still one reason that (sometimes) can make the layers dissapear: When the page is inside a frameset. In this case, you have to move the function to the frames page.
[/quote]

I have a fairly standard page, with a frame each for navigation and content. The nav. frame uses layers, which get broken by this NS bug, and the various fixes on here and elsewhere don't work, so I guessed and put
onResize="top.navbanner.location.reload();" somewhere in the frameset taf of frames-index.html. Works fine now !

[This message has been edited by Falken (edited June 28, 2000).]

[This message has been edited by Falken (edited June 28, 2000).]

Reply With Quote
  #12  
Old September 7th, 2000, 08:41 AM
rogergreen rogergreen is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: uk
Posts: 1 rogergreen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Netscape6 seems to abort when it encounters the javascript line:

var i = new Layer(0);

whereas ie5 and earlier versions of netscape are o.k.

Is this due to the fact that the layer tag is no longer used in netscape 6.

How do I get around this problem.

Roger

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Keeping a Layer After a Browser Resize


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT