1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    16
    Vote Rating
    0
    cmd.ares is on a distinguished road

      0  

    Question FormField's applyTo and Form validation

    FormField's applyTo and Form validation


    the "forms.html" in ext forms example has not validation.

    I try to add form validation but is missing.

    I don't konw if the "applyTo" method conflect with form.isValid().
    ---my js code---

    var myForm = new Ext.form.Form({
    url:'http://localhost:8080/test/DemoServlet',
    method:'post',
    listeners: {
    'actioncomplete': function(form, action){
    var data = action.result;
    Ext.MessageBox.alert('xxx','xxx'+data.data);
    },
    'actionfailed': function(form,action){alert('post failure')}
    },
    waitMsg:'Searching...'
    });

    var alpha2 = new Ext.form.TextField({
    allowBlank:false,
    vtype:'alpha',
    disableKeyFilter:true
    });
    alpha2.applyTo('txt');
    var date2 = new Ext.form.DateField({
    allowBlank:false,
    format:'Ymd'
    });
    date2.applyTo('date2');

    myForm.add(alpha2,alpha2);
    myForm.render('form1');
    Ext.get("btn").on("click",function(){
    if (myForm.isValid()){
    //myForm.submit();
    Ext.MessageBox.alert('isValid','success');
    }
    });

    -----------

  2. #2
    Ext User
    Join Date
    Mar 2007
    Posts
    17
    Vote Rating
    0
    rqmedes is on a distinguished road

      0  

    Default Has quick tips been initialised?

    Has quick tips been initialised?


    Has quick tips been initialised?

    Ext.QuickTips.init();

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar