Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Apr 2009
    Posts
    87
    Vote Rating
    1
    mabra is on a distinguished road

      0  

    Default Need help with understanding forms init and field order/inital focus

    Need help with understanding forms init and field order/inital focus


    Hi All !

    The best for me would be an article, which explains forms in detail [no books please:These omit
    these things completely {I have two} ]. I cannot find one and reading the docs all the time.

    I have a tabpanel with initial one [fixed] tab, which contains a form. These forms fields order is,
    what I cannot determine. I tried to start with "tabIndex" zero or one and I really need to skip some
    fields under some circumstances. The Ext docs dont show, what is the first number. When my form
    opens, no cursor is initially visible. How is that done? Is the focus somewhere else?? If I refer to the
    first field and "focus()" it, the first ugly appearance is the validation mark. This should really not
    appear, until someone typed something [wrong content]. So "focus()" is focus and not blur, so why
    does this mark appear?

    If I tab through the fields [after settings the mouse into one], even the browsers address bar will be
    part of this tabbing. This is really bad, I need something, which tabbes through my fields only, until
    I close this form.

    Any help would be really great!

    Thanks a lot++mabra

  2. #2
    Sencha User
    Join Date
    May 2010
    Posts
    45
    Vote Rating
    0
    diegotdai is on a distinguished road

      0  

    Default


    just use the tabIndex property on your form elements, there is many ways to achieve what you want (skipping form fields), say for instance all form fields you want to skip don't have the property allowBlank, you could after the form is rendered, loop through your elements and apply the listener:focus on each that are not required...but it really depends on your needs.
    PHP Code:
     new Ext.FormPanel({
        
    title'Simple Form',
        
    renderTodocument.body,
        
    defaultType'textfield',
        
    items: [
            {
                
    name'fieldName',
                
    fieldLabel'Name',
                
    allowBlankfalse,
                
    tabIndex1
            
    }, {
                
    fieldLabel'Surname',
                
    listeners: {
                    
    focus: function() {
                        
    this.nextSibling().focus();
                    }
                }
            }, {
                
    fieldLabel'Email',
                
    tabIndex2
            
    }
        ],
        
    buttons: [
            {
                
    text'Save',
                
    tabIndex3
            
    }, {
                
    text'Close',
                
    tabIndex4,
                
    handler: function() {

                }
            }
        ],
        
    listeners: {
            
    afterrender: function(form) {
                
    form.getForm().findField('fieldName').focus();
            }
        }
    }); 
    Hope this helps...

    Also, note that on the code above, the tab will only work on the form as long your fields have the tabIndex property (apart from the ones you want to skip, have listener etc...). You should also check the legislation on your jurisdiction for disability discrimination legislation.

    Hope this helps.

  3. #3
    Sencha User
    Join Date
    Apr 2009
    Posts
    87
    Vote Rating
    1
    mabra is on a distinguished road

      0  

    Default


    Hello !

    Much thanks! This gave me a little more insight for my next steps!
    Astoundingly, a ".fcous(false, 50" did the trick for me. It is not in
    the ext.docs :-( but found it somewhere.

    br++mabra

Thread Participants: 1

Tags for this Thread