Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Auto Expanding a textfield on mouse over to display text overflow in a table

I_J_G
Level 1
Level 1

Try to build a information request form for clients of a bookkeeping business, and want keep it to keep it to 1 page so once form is filled in I need the textbox to expand on mouse over to make reading easy and reduce to normal when cursor is removed.

The text fields are in a table. Here is an example on a web page http://www.cross-browser.com/toys/form_ta_autosize.html 

Q1  Am I going about this the wrong way trying work out a way to do it in Javascript?

does any body know of a javascript example that I can work from?

Q2 Can this be done using subforms?

It seems to me that this would be a fairly useful attribute for a text field and am suprised there is not a tool in the object library

Thanks

I hope someone can point me in the right direction

1 Accepted Solution
dcidev
Correct answer by
Level 8
Level 8

You can put in the mouseEnter event of your text field:

this.minH="1in";//or whatever your default text field height is

and in your mouseExit:

this.h="1in";//or whatever your default text field height is

Kyle

View solution in original post

1 Reply
dcidev
Correct answer by
Level 8
Level 8

You can put in the mouseEnter event of your text field:

this.minH="1in";//or whatever your default text field height is

and in your mouseExit:

this.h="1in";//or whatever your default text field height is

Kyle

View solution in original post