detect browser text resize, possible?

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

    #1

    detect browser text resize, possible?

    I'd like to detect when the user resizes the text in the browser, is
    there a specific event I can watch for?
  • Zifud

    #2
    Re: detect browser text resize, possible?

    mscir wrote:[color=blue]
    > I'd like to detect when the user resizes the text in the browser, is
    > there a specific event I can watch for?[/color]

    No.


    --
    Zif

    Comment

    • RobB

      #3
      Re: detect browser text resize, possible?

      mscir wrote:[color=blue]
      > I'd like to detect when the user resizes the text in the browser, is
      > there a specific event I can watch for?[/color]

      Relevant thread:

      Latest news coverage, email, free stock quotes, live scores and video are just the beginning. Discover more every day at Yahoo!


      Interesting application (IE 5+ only):

      <html>
      <head>
      <title>feh</title>
      </head>
      <body>
      <div style="
      whatever:expres sion(this.h&&th is.h!=this.offs etHeight?
      alert(this.offs etHeight):false ,this.h=this.of fsetHeight);
      position:absolu te">
      &nbsp;</div>
      </body>
      </html>

      Comment

      • mscir

        #4
        Re: detect browser text resize, possible?

        RobB wrote:[color=blue]
        > mscir wrote:
        >[color=green]
        >>I'd like to detect when the user resizes the text in the browser, is
        >>there a specific event I can watch for?[/color]
        >
        > Relevant thread:
        > http://groups.yahoo.com/group/wdf-dom/message/3816
        > Interesting application (IE 5+ only):
        > <html>
        > <head>
        > <title>feh</title>
        > </head>
        > <body>
        > <div style="
        > whatever:expres sion(this.h&&th is.h!=this.offs etHeight?
        > alert(this.offs etHeight):false ,this.h=this.of fsetHeight);
        > position:absolu te">
        > &nbsp;</div>
        > </body>
        > </html>[/color]

        Interesting approach, didn't let me resize the page though.

        Thanks,
        Mike

        Comment

        • Zifud

          #5
          Re: detect browser text resize, possible?

          RobB wrote:[color=blue]
          > mscir wrote:
          >[color=green]
          >>I'd like to detect when the user resizes the text in the browser, is
          >>there a specific event I can watch for?[/color]
          >
          >
          > Relevant thread:
          >
          > http://groups.yahoo.com/group/wdf-dom/message/3816
          >[/color]

          A 2 year old message suggesting an IE 5-only function (a
          whopping 4.3% of surfers[1]) and an entirely unreliable
          suggestion to use getComputedStyl e() on a window Resize event...

          Do you get a spotters fee over at Yahoo! Groups?


          1 <URL:http://www.w3schools.c om/browsers/browsers_stats. asp>

          --
          Zif

          Comment

          • RobB

            #6
            Re: detect browser text resize, possible?

            Zifud wrote:[color=blue]
            > RobB wrote:[color=green]
            > > mscir wrote:
            > >[color=darkred]
            > >>I'd like to detect when the user resizes the text in the browser,[/color][/color][/color]
            is[color=blue][color=green][color=darkred]
            > >>there a specific event I can watch for?[/color]
            > >
            > >
            > > Relevant thread:
            > >
            > > http://groups.yahoo.com/group/wdf-dom/message/3816
            > >[/color]
            >
            > A 2 year old message suggesting an IE 5-only function (a
            > whopping 4.3% of surfers[1]) and an entirely unreliable
            > suggestion to use getComputedStyl e() on a window Resize event...[/color]

            What's the statute of limitations on those...2 weeks?

            IE 5+ includes IE 5.5, IE 6...slightly higher percentage.

            I didn't endorse everything in that thread, just ran across it recently
            on a search for something else, and thought the OP might be interested.
            [color=blue]
            > Do you get a spotters fee over at Yahoo! Groups?[/color]

            Uh-uh. Does your issuing a one-word unconditional reply to a post here
            close the thread?

            Comment

            • David Dorward

              #7
              Re: detect browser text resize, possible?

              mscir wrote:
              [color=blue][color=green][color=darkred]
              >>>I'd like to detect when the user resizes the text in the browser, is
              >>>there a specific event I can watch for?[/color][/color][/color]
              [color=blue]
              > Interesting approach, didn't let me resize the page though.[/color]

              That's what you want to do? (It always helps to describe the problem as well
              as the barrier that is preventing you from implementing the solution you
              have come up with).

              Just define your lengths in units relative to the font size in the first
              place:

              div#navigation {
              width: 35em;
              }

              --
              David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
              Home is where the ~/.bashrc is

              Comment

              • mscir

                #8
                Re: detect browser text resize, possible?

                David Dorward wrote:[color=blue]
                > mscir wrote:
                >[color=green][color=darkred]
                >>>>I'd like to detect when the user resizes the text in the browser, is
                >>>>there a specific event I can watch for?[/color][/color]
                >[color=green]
                >>Interesting approach, didn't let me resize the page though.[/color]
                >
                > That's what you want to do? (It always helps to describe the problem as well
                > as the barrier that is preventing you from implementing the solution you
                > have come up with).
                >
                > Just define your lengths in units relative to the font size in the first
                > place:
                >
                > div#navigation {
                > width: 35em;
                > }[/color]

                Sorry I wasn't clearer in my original post. I'd like a cross-browser
                approach that lets me see when the browser text is resized, e.g. when
                the Netscape 7.2 menu choice: 'View > Text Zoom' setting is changed,
                or when the IE 6 menu choice: 'View > Text Size' setting is changed.

                Barrier to solving: I haven't sen any kind of event trapping that will
                work (I plead ignorance).

                Mike

                Comment

                • David Dorward

                  #9
                  Re: detect browser text resize, possible?

                  mscir wrote:
                  [color=blue][color=green]
                  >> Just define your lengths in units relative to the font size in the first
                  >> place:[/color][/color]
                  [color=blue][color=green]
                  >> div#navigation {
                  >> width: 35em;
                  >> }[/color][/color]
                  [color=blue]
                  > Barrier to solving: I haven't sen any kind of event trapping that will
                  > work (I plead ignorance).[/color]

                  You don't need to trap the event. If you define your lengths using units
                  relative to the font size, then they will change size when the font size
                  changes.

                  --
                  David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
                  Home is where the ~/.bashrc is

                  Comment

                  Working...