473,385 Members | 1,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 24638
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: me54 | last post by:
does anyone know how to call some javascript function when firefox fire the onresize event? something like <body onresize="alert();"> doesn't work on forefox? thnx.
4
by: Nick Wedd | last post by:
I have a test page http://www.files.maproom.org/00/12/q/w.html which almost does what I want. The idea is that, when you hover the mouse over one of the dates near the top of the page, it...
2
by: mitch | last post by:
In IE, I'm having problems with these events. What I'm trying to do is get the size of the window after the user has resized it, either by dragging the corner or by maximizing. It seems like...
8
by: ds_lewis | last post by:
Is there a way to tell when the user closes the browser that doesn't also happen when a page is merely being refreshed? Thanks, Targus
5
by: pagates | last post by:
Hi All, Newbie here again. I have a master page setup that is a two-column table. The left is a table of contents, the right the target. I want the left column to always take up 100% of the...
2
by: yb | last post by:
I am attempting to modify the style of an element (its width) as the window is being resized, in firefox. Long story short, I've tried to use CSS but one particular part of the layout just won't...
9
by: Bali | last post by:
Default.aspx is the starting page containing a control(ascx) which has asp:button control on it. On the button click event it has to open a new page as a modal control. Since refreshing a page in a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.