the question was not which characters were selected, but rather which were
visible in the case where the textbox was not large enough to display all
the characters.
-- bruce (sqlwork.com)
> why no --> read the dhtml reference;
>
> use createTextRange () and getClientRects() for IExplorer;
>
> example:
> <html><head>><title>Get TextBox Text Width</title></head><body><input id="test" onkeydown="change_YourInput_Width ();" type="text"
size="10"></body><script>
> var YourInput=document.getElementById("test");
>
[quoted text clipped - 8 lines]
> }
> </script></html
Lithium - 10 Apr 2004 19:26 GMT
>the question was not which characters were selected, but rather which wer
>visible in the case where the textbox was not large enough to display al
>the characters
>-- bruce (sqlwork.com
Tom Wells question was
Is there a jscript function that can check the location of text in a textbo
to determine if the text is exceeding the display area of the textbox
and yes it is with getClientRects () you get a rectangle of the complete input value and with attributes right and left you ca
calculate the width and if the text width is bigger than the input clientWidth -
THE TEXT IS EXCEEDING THE DISPLAY AREA OF THE TEXTBOX
Tom Wells - 15 Apr 2004 22:28 GMT
Thanks guys! I'll give it a try and resolve this argument.
> >the question was not which characters were selected, but rather which were
> >visible in the case where the textbox was not large enough to display all
[quoted text clipped - 9 lines]
> calculate the width and if the text width is bigger than the input clientWidth ->
> THE TEXT IS EXCEEDING THE DISPLAY AREA OF THE TEXTBOX.