PDA

View Full Version : Not working cursor buttons in vtype email button



whyte624
21 Aug 2011, 11:58 PM
I have field

{ fieldLabel: 'E-mail', name: 'email', vtype: 'email' }
in form.Panel.
And cursor buttons (left, right) doesn't work in this field in Opera. Other fields and other browsers works fine.

Any ideas?

whyte624
22 Aug 2011, 6:34 PM
I mean "field", not "button".

The same problem in Firefox.

i.stojanovic
8 Dec 2011, 4:50 AM
I have same problem, FireFox work fine, but Opera block cursor keys.

If textfield have vtype atribute, cursors left/right/backspace not works.
Without vtype, everithing works fine.

???

-----

www.codelighter.com
(http://www.codelighter.com/)There are 10 types of people in this world, those who understand binary and those who

i.stojanovic
8 Dec 2011, 5:15 AM
Hi,

I create my own validate class and works fine in Opera:

Create adv-vtypes.js file



/*
Work in ExtJS 4
*/
// Add the additional 'advanced' VTypes
Ext.apply(Ext.form.field.VTypes,
{
// Valid e-mail
e_mail: function(val, field)
{
return /^\S+@\S+\.\S+$/.test(val);
},
e_mailText: 'This field should be an e-mail address in the format "user@example.com"',
});

Call file and in form field set attribute vtype:'e_mail'

-----

www.codelighter.com
(http://www.codelighter.com/)There are 10 types of people in this world, those who understand binary and those who dont