[Dojo-interest] anyone interested in a new TelephoneTextBox dijit?
go.lists at technema.fr
Mon Aug 1 13:58:21 EDT 2011
Not for the moment, but I could prepare a simple form for you to test it.
I can do it this evening.
Le 01/08/11 19:52, ben hockey a écrit :
> got a link? i want to try to break it ;)
> On 8/1/2011 1:50 PM, Guillaume ORIOL wrote:
>> Dear Dojo users,
>> I wrote a TelephoneTextBox dijit, along with two helper classes to filter and validate telephone
>> numbers and would like to know it somebody would be interested in.
>> Basically, the TelephoneTextBox dijit extends dijit.form.TextBox (almost the same way
>> ValidationTextBox does). Any telephone number from any country may be typed in and validated.
>> You may enter an international phone number (starting with the international prefix placeholder "+")
>> or a national phone number (without placeholder). It is filtered, parsed and validated on input and
>> formatted on blur. As with MappedTextBox, an internal representation is stored in a hidden input
>> field and a formatted value is displayed. The internal (canonical) form is based on ITU-T
>> recommendation E.164 and consists of digits only, starting with the assigned country code.
>> The formatting options permits to display the telephone number in a national or international form,
>> but also in a mixed form (if the telephone country code matches the locale, it will be displayed in
>> national format, otherwise the international format will be used).
> Dojotoolkit: http://dojotoolkit.org
> Reference Guide: http://dojotoolkit.org/reference-guide
> API Documentation: http://dojotoolkit.org/api
> Tutorials: http://dojotoolkit.org/documentation
> Dojo-interest at mail.dojotoolkit.org
More information about the Dojo-interest