473,656 Members | 2,762 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Refreshing page at onResize event: problem with Firefox

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

<body onResize="javas cript:winodw.lo cation.reload(t rue); 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 24656
hannibal wrote:
<body onResize="javas cript:winodw.lo cation.reload(t rue); 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************ *********@wanad oo.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="locat ion.href=locati on.href">

Thanks all!

Bye

Aug 29 '05 #5
"hannibal" <td*******@jump y.it> wrote in message
news:ei******** *************** *********@4ax.c om...
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************ *********@wanad oo.fr.invalid> wrote:
2) <body onresize="alert ('resize')"> works with my FF


I solve my problem with:
<body onResize="locat ion.href=locati on.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
2749
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
1833
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 updates _both_ the appearance of the map, _and_ the text appearing in the iframes further down the page. I would like it to do this smoothly; but each time you select a new page, the browser window jerks down to the iframes (where the text was...
2
8100
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 in IE if the window has a handler for onresize, and the user clicks to maximize the window, the handler gets called BEFORE the window is maximized. So the size is the size before maximizing, rather than after. (In
8
2613
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
8417
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 height of the browser (or, to put it another way, I want the content to take up 100% of the right column if it is smaller than the height). Is there a way to do that?
2
5207
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 do what I need. The javascript solution assigns a function to window.onresize that sets the inline style, it works with one problem -- the handler only gets called after the resizing stops, and so there is noticeable lag before it redraws.
9
4423
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 dialog box ended up opening up a new browser window with the aspx page, I read on a forum that I should use the iframe control and since I have to open a bunch of pages as diaogboxes, I created a general page(Container.aspx) which has an iframe...
0
8382
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8297
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8816
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8717
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8498
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7311
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1600
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.