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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi