onresize

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ike

    onresize

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

    Thanks, Ike


  • kaeli

    #2
    Re: onresize

    In article <KSOWb.2755$W74 .27@newsread1.n ews.atl.earthli nk.net>,
    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.
    Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.

    &q=onresize&btn G=Google+Search

    --
    --
    ~kaeli~
    She was engaged to a boyfriend with a wooden leg but broke
    it off.



    Comment

    • Ike

      #3
      Re: onresize

      Kaeli,

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

      "kaeli" <tiny_one@NOSPA M.comcast.net> wrote in message
      news:MPG.1a958b 2bb59d4a1f989c1 7@nntp.lucent.c om...[color=blue]
      > In article <KSOWb.2755$W74 .27@newsread1.n ews.atl.earthli nk.net>,
      > 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&btn G=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]


      Comment

      • kaeli

        #4
        Re: onresize

        In article <1vQWb.2861$W74 .1466@newsread1 .news.atl.earth link.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.



        Comment

        • Ike

          #5
          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@NOSPA M.comcast.net> wrote in message
          news:MPG.1a95a7 15e0a2cc58989c1 a@nntp.lucent.c om...[color=blue]
          > In article <1vQWb.2861$W74 .1466@newsread1 .news.atl.earth link.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]


          Comment

          Working...