2 msgHow are web apps like Queeky and Imagination Cu...
1 msgRe: SPAM-LOW: Identifier expected
22 msgIdentifier expected
2 msgautomated response
5 msgFlash Upload and asp.net trouble
2 msgget number of line in dynamic textfield
1 msgRe: How does YouTube convert all video formats ...
10 msgNeed help
4 msgLocalConnection Issue - Flash 8 + IE
6 msgChanging the computer code of a swf file?

Restricting an Input Field to Visible Area
\ Richard Helgor (8 Feb 2007)
. \ Joe Cutting (8 Feb 2007)

2 msgPrint a big dynamic text on multiple pages
1 msgFileReference vs FileReferenceList
8 msghas the user seen the animation? shared object?
1 msgFlash Developer required - Bangalore, India
5 msgHow does YouTube convert all video formats to F...
1 msgXMLConnector and password
1 msgLucene Indexed Search implementation
1 msgRe: Detecting mouse events over non-white parts
1 msgRE:[ Flashcoders] Tab Problem
Subject:Restricting an Input Field to Visible Area
Group:Flashcoders
From:Richard Helgor
Date:8 Feb 2007


 
Hi,

I've got an input field that I want to restrict users to only being
able to post as much as will fit into the field without scrolling
(approx. 500 chars). I can set the field to a max. chars of 500, but
this doesn't take into account line breaks, which allow the user to
write much less than 500 chars, but still extend past the visible box.

Is there an easy way I can restrict this to the visible box area, or
is it a case of parsing the content with a function on each keypress
to calculate the limit? I'm worried I will launch into something
complicated and time-consuming, while overlooking a simpler technique.

Thanks,
Richard.
_______________________________________________
Flashcoders
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


© 2004-2008 readlist.com