473,388 Members | 1,499 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,388 software developers and data experts.

onresize

Ike
Does javascript have on onresize() method? How can you implement that? Is it
possible to cause things to repaint when resized?

Thanks, Ike
Jul 20 '05 #1
4 1925
In article <KS***************@newsread1.news.atl.earthlink.ne t>,
rx*@hotmail.com enlightened us with...
Does javascript have on onresize() method? How can you implement that? Is it
possible to cause things to repaint when resized?


Yes and no. Most elements (including the window) have a resize event and
an onresize method.
The vast majority of the time, this is not needed. Proper CSS and
placement take care of things so they resize as appropriate (use
percents, not pixels).

For the rare occasions it is needed...
a simple google search shows all kinds of things to do with resize.
http://www.google.com/search?hl=en&l...UTF-8&oe=utf-8
&q=onresize&btnG=Google+Search

--
--
~kaeli~
She was engaged to a boyfriend with a wooden leg but broke
it off.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #2
Ike
Kaeli,

Does NS (Mozilla) still not support pixels, only percents? -Ike

"kaeli" <ti******@NOSPAM.comcast.net> wrote in message
news:MP************************@nntp.lucent.com...
In article <KS***************@newsread1.news.atl.earthlink.ne t>,
rx*@hotmail.com enlightened us with...
Does javascript have on onresize() method? How can you implement that? Is it possible to cause things to repaint when resized?


Yes and no. Most elements (including the window) have a resize event and
an onresize method.
The vast majority of the time, this is not needed. Proper CSS and
placement take care of things so they resize as appropriate (use
percents, not pixels).

For the rare occasions it is needed...
a simple google search shows all kinds of things to do with resize.
http://www.google.com/search?hl=en&l...UTF-8&oe=utf-8
&q=onresize&btnG=Google+Search

--
--
~kaeli~
She was engaged to a boyfriend with a wooden leg but broke
it off.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #3
In article <1v*****************@newsread1.news.atl.earthlink. net>,
rx*@hotmail.com enlightened us with...
Kaeli,

Does NS (Mozilla) still not support pixels, only percents? -Ike


For what?
I use percents for pretty much everything so stuff renders no matter
what size the window is. I don't know of anything that won't use pixels,
but it's considered bad practice for most elements to use pixels. Using
pixels makes it really hard for people with disabilities to resize
things properly. It also seems to make the assumption that everyone is
using a particular resolution when some people aren't even using just
one monitor. Some people use a huge monitor with many applications open
so they can monitor things while they surf. This is very popular for
system admins. :)

--
--
~kaeli~
Dijon vu - the same mustard as before.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #4
Ike
Yes, I see your point, particulrly if things are going to be rendered to
smaller devices, pda's etc. Thanks, Ike

"kaeli" <ti******@NOSPAM.comcast.net> wrote in message
news:MP************************@nntp.lucent.com...
In article <1v*****************@newsread1.news.atl.earthlink. net>,
rx*@hotmail.com enlightened us with...
Kaeli,

Does NS (Mozilla) still not support pixels, only percents? -Ike


For what?
I use percents for pretty much everything so stuff renders no matter
what size the window is. I don't know of anything that won't use pixels,
but it's considered bad practice for most elements to use pixels. Using
pixels makes it really hard for people with disabilities to resize
things properly. It also seems to make the assumption that everyone is
using a particular resolution when some people aren't even using just
one monitor. Some people use a huge monitor with many applications open
so they can monitor things while they surf. This is very popular for
system admins. :)

--
--
~kaeli~
Dijon vu - the same mustard as before.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #5

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

Similar topics

2
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,...
2
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
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.
5
by: jerars | last post by:
Hi! I have recently realized that some computer in my office have a different behavior when it comes to handle the onresize event in Internet explorer. I red a lot on this forum about this but I...
1
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">...
2
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...
2
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...
8
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...
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...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...

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.