Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

modifying the insertion point in an input element



Hi all,

I have an application that displays several form elements. As the user enters data (such as phone numbers) in text fields (DOMHTMLInputElement), I would like to auto-insert hyphens '-' at the appropriate places.

I found that its pretty easy to insert text with setValue:, but that unfortunately keeps the insertion point in the text field the same. Is it possible to manipulate the text field's insertion point in any way? Specifically, I would like to move the insertion point after the text that I insert.

Thanks,

	-andy

--
Andy Finnell
Order N Development, LLC
http://www.orderndev.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.