Richard,

You'll need to do some JavaScript magic to accomplish that.  There are 
some widgets and jQuery plugins out there that seem to fit the bill:

http://digitalbush.com/projects/masked-input-plugin/ (jQuery plugin)
http://jquery-plugins.net/tag/masked-input (a list of jQuery plugins)
http://jasny.github.io/bootstrap/javascript/#inputmask (Bootstrap plugin)

-Carl V.

On 2/25/2014 12:13 PM, Richard White wrote:
> Hi,
>
> This is not really a CF question but rather seeking general code advise.
>
> I want to create a textfield using ExtJS and would like the user only to have 
> access to alter parts of the text...
>
> For example, I want to populate the textfield with 'CP   - - U'
> When the user clicks on this textfield I want the cursor to start blinking 
> next to the P (in the position of the empty space). Then as the user types I 
> would like the textfield to replace the empty spaces. When they get to a dash 
> it automatically skips the dash and keeps typing where the next underline is.
>
> Is there a special kind of textfield or formatting that can be used to 
> achieve this?
>
> Many thanks for any advise.
> Richard
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357762
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to