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.

Hybrid View

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    45
    Answers
    4
    Vote Rating
    0
    smerny is on a distinguished road

      0  

    Default Unanswered: "this" in function onclick for checkboxfield

    Unanswered: "this" in function onclick for checkboxfield


    Code:
            
    xtype: 'checkboxfield',                    
    name: 'exampleName',
    id: 'exampleId',
    value: 'exampleValue',
    label: 'exampleLabel',
     listeners: {
           click: {
                   element: 'el',
                    fn: function() { 
                           alert("clicked:"+this.name+". checked:"+this.checked+".")
                     }
              }
     }
    I want to get "clicked:exampleName. checked:true/false."... but i'm getting "clicked:undefined. checked:undefined", how can get the information that i want?

  2. #2
    Sencha User
    Join Date
    Sep 2011
    Posts
    45
    Answers
    4
    Vote Rating
    0
    smerny is on a distinguished road

      0  

    Default


    made a breakpoint with chrome developer tools and went through the var... ended up with this..

    alert("clicked:"+this.dom.id+". checked:"+this.dom.lastElementChild.checked+".")

    which works... but is this how it should be done?