check Overflow for <DIV> - Javascript

This is a discussion on check Overflow for <DIV> - Javascript ; Hello, In DHMTL page, I have &quot;&lt;DIV style='width=100px;overflow:hidden' id=divTest&gt;test test test test&lt;/DIV&gt;&quot;, I need to check if all text within &quot;&lt;DIV&gt;&quot; and &quot;&lt;/DIV&gt;&quot; is displayed; in other words, check if any charactor is hidden. Could you tell how to check ...

+ Reply to Thread
Results 1 to 4 of 4

check Overflow for <DIV>

  1. Default check Overflow for <DIV>

    Hello,

    In DHMTL page, I have "<DIV style='width=100px;overflow:hidden'
    id=divTest>test test test test</DIV>", I need to check if all text within
    "<DIV>" and "</DIV>" is displayed; in other words, check if any charactor is
    hidden. Could you tell how to check it by using javacript? Thanks a lot.

    Charlie



  2. Default RE: check Overflow for <DIV>

    We can't do this, unless the font size is hard code,and the user have same
    moniter with fixed resolution. And then only if you examine the exact pixel
    height and width for that particular size up front.

    Can't you solve this another way instead? Autoscroll? Grow the div
    vertically?

    Luke


  3. Default Re: check Overflow for <DIV>

    yes, in javascript just compare the divs clientHeight to its scrollHeight.


    -- bruce (sqlwork.com)


    "Charlie Hoo" <Charlie@newsgroups.nospam> wrote in message
    news:eGJW$27EGHA.376@TK2MSFTNGP12.phx.gbl...
    > Hello,
    >
    > In DHMTL page, I have "<DIV style='width=100px;overflow:hidden'
    > id=divTest>test test test test</DIV>", I need to check if all text within
    > "<DIV>" and "</DIV>" is displayed; in other words, check if any charactor
    > is
    > hidden. Could you tell how to check it by using javacript? Thanks a lot.
    >
    > Charlie
    >




  4. Default Re: check Overflow for <DIV>

    Bruce,

    Thanks a lot. It works very well.

    Charlie

    "Bruce Barker" <brubar_nospamplease_@safeco.com> wrote in message
    news:%23FX4WOXFGHA.344@TK2MSFTNGP11.phx.gbl...
    > yes, in javascript just compare the divs clientHeight to its scrollHeight.
    >
    >
    > -- bruce (sqlwork.com)
    >
    >
    > "Charlie Hoo" <Charlie@newsgroups.nospam> wrote in message
    > news:eGJW$27EGHA.376@TK2MSFTNGP12.phx.gbl...
    >> Hello,
    >>
    >> In DHMTL page, I have "<DIV style='width=100px;overflow:hidden'
    >> id=divTest>test test test test</DIV>", I need to check if all text within
    >> "<DIV>" and "</DIV>" is displayed; in other words, check if any charactor
    >> is
    >> hidden. Could you tell how to check it by using javacript? Thanks a lot.
    >>
    >> Charlie
    >>

    >
    >




+ Reply to Thread

Similar Threads

  1. FFT overflow
    By Application Development in forum DSP
    Replies: 10
    Last Post: 07-09-2007, 12:37 PM
  2. SV assertion to check for overflow?
    By Application Development in forum verilog
    Replies: 0
    Last Post: 06-19-2007, 07:15 AM
  3. overflow
    By Application Development in forum Javascript
    Replies: 2
    Last Post: 05-02-2007, 10:46 AM
  4. Overflow? What gives?
    By Application Development in forum basic.visual
    Replies: 7
    Last Post: 04-26-2007, 10:24 PM
  5. Overflow
    By Application Development in forum Inetserver
    Replies: 0
    Last Post: 09-09-2003, 05:18 AM