473,657 Members | 2,567 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

onResize + IE = torture

Hi...

Is there a way of preventing the second firing of the onResize event in IE?
It's an absolute bast. In the past few weeks I've come to realise how
completely and utterly pants IE is. Shame a million percent of people use
it. : (
Jul 20 '05 #1
6 6992
rf

"The Plankmeister" <pl************ ******@hotmail. com> wrote in message
news:3f******** *************** @dread14.news.t ele.dk...
Hi...

Is there a way of preventing the second firing of the onResize event in

IE?

Why do you want to hook the onResize event? Just interested :-)

Cheers
Richard.
Jul 20 '05 #2
> Why do you want to hook the onResize event? Just interested :-)

I have some divs that are different heights when the page initially loads.
It's not too bad to look at, but I'm implementing a javascript method to
change the height of all the divs so their bottom edges are all on the same
level.
It looks perfectly fine with javascript turned off, I am merely doing it as
a refinement for those people who have javascript turned on.

I've had to hack it to get it working in IE... Any advice on how to prevent
the 2nd firing would be greatly appreciated!

P.
Jul 20 '05 #3
rf

"The Plankmeister" <pl************ ******@hotmail. com> wrote in message
news:3f******** *************** @dread14.news.t ele.dk...
Why do you want to hook the onResize event? Just interested :-)
I have some divs that are different heights when the page initially loads.
It's not too bad to look at, but I'm implementing a javascript method to
change the height of all the divs so their bottom edges are all on the

same level.
It looks perfectly fine with javascript turned off, I am merely doing it as a refinement for those people who have javascript turned on.


Hmmm. IHMO you should be concentrating on refining your content instead of
trying to defeat what the browser has just decided for its layout.

Cheers
Richard.
Jul 20 '05 #4
It's hard to say about the double firing without seeing your code.
I use onresize in certain situations (for when the user alters font
size), and haven't noticed your problem.

However, in situations where I get unwanted event firings, I will
usually designate a variable that I set, so the unwanted events
may be ignored depending on the true or falseness of the variable.

Csaba Gabor

"The Plankmeister" <pl************ ******@hotmail. com> wrote in message
news:3f******** *************** @dread14.news.t ele.dk...
Why do you want to hook the onResize event? Just interested :-)


I have some divs that are different heights when the page initially loads.
It's not too bad to look at, but I'm implementing a javascript method to
change the height of all the divs so their bottom edges are all on the same
level.
It looks perfectly fine with javascript turned off, I am merely doing it as
a refinement for those people who have javascript turned on.

I've had to hack it to get it working in IE... Any advice on how to prevent
the 2nd firing would be greatly appreciated!

P.


Jul 20 '05 #5
Hmmm. IHMO you should be concentrating on refining your content instead of
trying to defeat what the browser has just decided for its layout.

IMHO you should either answer the question I asked or not answer at all.

Cheers,
P.
Jul 20 '05 #6
However, in situations where I get unwanted event firings, I will
usually designate a variable that I set, so the unwanted events
may be ignored depending on the true or falseness of the variable.


That's what I've done in this case. I suppose it'll have to do... I've
Googled 'til I'm blue in the face regarding this quirk of IE and it seems
it's a behaviour that cannot be altered. Oh well... Maybe one day Micro$haft
will release a good browser : )

Thanks for the advice, anyway.

P.
Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
9965
by: Bas | last post by:
Hello all, I'm trying to create a little script which will save the width of a certain frame into a database, so that every user still has his/her "own" frame width when logging back on. Now, this works ok, though there's one little problem left: when i click the frameborder and drag it around in IE (it's not working in NN, but that's not my goal since it's a very specific CMS) the onResize handler is called literally hundreds of times.
4
1935
by: Ike | last post by:
Does javascript have on onresize() method? How can you implement that? Is it possible to cause things to repaint when resized? Thanks, Ike
2
7126
by: David | last post by:
Greetings, Does anyone know of a workaround for the onresize bug in Firefox? <body onresize="history.go(0)"> I've looked all around and can't seem to find a working workaround. David
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.
1
2727
by: Darrel Yurychuk | last post by:
I'm having a problem getting the window.onresize to work properly. Here is a simple test case I wrote: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Test window.onresize</title> <script type="text/javascript"> function resize_func() {
2
97089
by: Tony | last post by:
If I want to call a function (call it doResize) when the browser window is resized, is it better to put that in the body tag: <body onresize="doResize()"> Or is it better to put the call in a script tag in the <head>: <script type="text/javascript"> window.onresize = doResize; </script>
2
2026
by: FrankIsHere | last post by:
This should attach the event to the onresize of the window object, but when I try to resize the browser after executing the page it does not work... only after I refresh the page. But then of course that's after the HTTP request. Here is the code: <HTML> <HEAD> <script language="javascript"> function Loadit() { var oHTTP = new ActiveXObject("Microsoft.XMLHTTP");
8
7856
by: David Gravereaux | last post by:
Hi, I'm using chunked transfer-coding to send an "unending" page, but IE _NEVER_ fires onresize events until the page is finished. Unfortunately, the page never is "finished". How do I handle this?
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.
0
8392
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
8823
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
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7321
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
6163
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
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1950
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1607
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.