469,271 Members | 1,787 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

Refreshing page at onResize event: problem with Firefox

Hi,
i need to refresh page cathcing "onResize" event.
I wrote this code:

<body onResize="javascript:winodw.location.reload(true); return
true;">

On I.E. it works, but it doesn't work on Firefox.

Someone knows why?

Thanks in advantage!
Aug 27 '05 #1
6 24441
hannibal wrote:
<body onResize="javascript:winodw.location.reload(true); return
true;"> On I.E. it works, but it doesn't work on Firefox.


http://www.w3.org/TR/html4/interact/....html#h-18.2.3

What onResize attribute?

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Aug 27 '05 #2
On Sat, 27 Aug 2005 09:28:48 +0100, David Dorward <do*****@yahoo.com>
wrote:

http://www.w3.org/TR/html4/interact/....html#h-18.2.3

What onResize attribute?


Really interesting! But... Does thist mean that is impossibile to do
something when users resize browser's windows?

Aug 27 '05 #3
ASM
hannibal wrote:
On Sat, 27 Aug 2005 09:28:48 +0100, David Dorward <do*****@yahoo.com>
wrote:
http://www.w3.org/TR/html4/interact/....html#h-18.2.3

What onResize attribute?


Really interesting! But... Does thist mean that is impossibile to do
something when users resize browser's windows?


1) leave me resizing my windows as I want, thanks

2) <body onresize="alert('resize')"> works with my FF
--
Stephane Moriaux et son [moins] vieux Mac
Aug 28 '05 #4
On Sun, 28 Aug 2005 01:54:21 +0200, ASM
<st*********************@wanadoo.fr.invalid> wrote:
1) leave me resizing my windows as I want, thanks
:)
2) <body onresize="alert('resize')"> works with my FF


I solve my problem with:
<body onResize="location.href=location.href">

Thanks all!

Bye

Aug 29 '05 #5
"hannibal" <td*******@jumpy.it> wrote in message
news:ei********************************@4ax.com...
On Sat, 27 Aug 2005 09:28:48 +0100, David Dorward <do*****@yahoo.com>
wrote:

http://www.w3.org/TR/html4/interact/....html#h-18.2.3

What onResize attribute?


Really interesting! But... Does thist mean that is impossibile to do
something when users resize browser's windows?


Not at all - but IE and FireFox behave differently.

In IE the resize event is thrown continuously as you resize (each "pixel
move" throws the event). In FireFox the event is thrown only after the
action is completed.

In complex applications I generally create a "setLayout()" function that
defines the elements of the application based on the current window size.
This function is then run onResize to manage the layout.

It tends to work fine in both browsers but IE's implementation is smoother
as the event is throw and the elements resize during the operation. In
Firefox the elements aren't resized until the operation is complete (until
the user releases the resize control).

Again - both work, they just work (slightly) differently.

Jim Davis
Aug 29 '05 #6
ASM
hannibal wrote:
On Sun, 28 Aug 2005 01:54:21 +0200, ASM
<st*********************@wanadoo.fr.invalid> wrote:
2) <body onresize="alert('resize')"> works with my FF


I solve my problem with:
<body onResize="location.href=location.href">


that solve anything with IE
because on first pixel added the page will refresh
what about 50 pixels ?

so I can't change size without at least a timer
--
Stephane Moriaux et son [moins] vieux Mac
Aug 30 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by me54 | last post: by
4 posts views Thread by Nick Wedd | last post: by
2 posts views Thread by mitch | last post: by
8 posts views Thread by ds_lewis | last post: by
5 posts views Thread by pagates | last post: by
2 posts views Thread by yb | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.