RE: page resizing
by Nate Harel <nharel(at)consultant.com>
|
Date: |
Tue, 31 Jul 2001 22:25:28 -0400 |
To: |
"Jim O'Brien" <JObrien(at)witness.com> |
Cc: |
"'Nate Harel '" <nharel(at)consultant.com>, "'hwg-techniques(at)hwg.org'" <hwg-techniques(at)hwg.org> |
In-Reply-To: |
witsys |
|
todo: View
Thread,
Original
|
|
Jim,
I actually move a layer about the screen to position it and need to refresh
the window in order to do that.
Nate
At 7/31/2001 08:30 PM, Jim O'Brien wrote:
>Just for my curiousity... Why do you need to refresh your window(s) in IE?
>The reason there is such a "to do" about the resize script for Netscape is
>because there was actually a bug in Netscape that caused a problem when
>windows were resized. To my knowledge, this issue does not exist with
>IE....
>
>Thanks in advance for humoring me...
>-- "the Design Guy"
>
>
>
>-----Original Message-----
>From: Nate Harel
>To: hwg-techniques(at)hwg.org
>Sent: 7/31/01 3:24 PM
>Subject: page resizing
>
>Hi all,
>
>Perhaps I can get a bit of advice on this.
>
>I want to refresh a web page when it gets resized.
>
>I am using Dreamweaver and they have a little JS routine that does it
>for
>Netscape and it works fine. I wanted to implement the same functionality
>
>for IE and copied the code and made some minor mods to it. However, the
>page does not automatically refresh upon resizing. Some
>ideas/suggestions
>please.
>
>Here is the code and the page it is located on ...
>
><script language="JavaScript">
>function reloadPage(init) { //reloads the window if window resized
> if (init==true) {
> document.pgW=self.innerWidth;
> onresize=reloadPage; }
> else
> if (self.innerWidth!=document.pgW )
> location.reload();
>}
>reloadPage(true);
></script>
>
>
>http://www.nettech-hosting.net/SeedPartners/index.html
>
>
>Thanks
>
>Nate
>
> ---------------------------------------------------
> Nate Harel
> NetTech Services
> 66 Carol Road
> Needham, MA 02492-1108
> Tel: 1-781-559-8176
> Toll Free: 1-877-567-8936
> FAX: 1-877-567-8936
> Email: nharel(at)consultant.com
> www.nettech-services.net
> ----------------------------------------------------
---------------------------------------------------
Nate Harel
NetTech Services
66 Carol Road
Needham, MA 02492-1108
Tel: 1-781-559-8176
Toll Free: 1-877-567-8936
FAX: 1-877-567-8936
Email: nharel(at)consultant.com
www.nettech-services.net
----------------------------------------------------
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA