Connecting Tech Pros Worldwide Forums | Help | Site Map

onresize

Ike
Guest
 
Posts: n/a
#1: Jul 20 '05
Does javascript have on onresize() method? How can you implement that? Is it
possible to cause things to repaint when resized?

Thanks, Ike



kaeli
Guest
 
Posts: n/a
#2: Jul 20 '05

re: onresize


In article <KSOWb.2755$W74.27@newsread1.news.atl.earthlink.ne t>,
rxv@hotmail.com enlightened us with...[color=blue]
> Does javascript have on onresize() method? How can you implement that? Is it
> possible to cause things to repaint when resized?
>[/color]

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

Ike
Guest
 
Posts: n/a
#3: Jul 20 '05

re: onresize


Kaeli,

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

"kaeli" <tiny_one@NOSPAM.comcast.net> wrote in message
news:MPG.1a958b2bb59d4a1f989c17@nntp.lucent.com...[color=blue]
> In article <KSOWb.2755$W74.27@newsread1.news.atl.earthlink.ne t>,
> rxv@hotmail.com enlightened us with...[color=green]
> > Does javascript have on onresize() method? How can you implement that?[/color][/color]
Is it[color=blue][color=green]
> > possible to cause things to repaint when resized?
> >[/color]
>
> 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
>[/color]


kaeli
Guest
 
Posts: n/a
#4: Jul 20 '05

re: onresize


In article <1vQWb.2861$W74.1466@newsread1.news.atl.earthlink. net>,
rxv@hotmail.com enlightened us with...[color=blue]
> Kaeli,
>
> Does NS (Mozilla) still not support pixels, only percents? -Ike
>[/color]

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

Ike
Guest
 
Posts: n/a
#5: Jul 20 '05

re: onresize


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

"kaeli" <tiny_one@NOSPAM.comcast.net> wrote in message
news:MPG.1a95a715e0a2cc58989c1a@nntp.lucent.com...[color=blue]
> In article <1vQWb.2861$W74.1466@newsread1.news.atl.earthlink. net>,
> rxv@hotmail.com enlightened us with...[color=green]
> > Kaeli,
> >
> > Does NS (Mozilla) still not support pixels, only percents? -Ike
> >[/color]
>
> 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
>[/color]


Closed Thread