By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,962 Members | 1,889 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,962 IT Pros & Developers. It's quick & easy.

onresize

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.