Threaded View

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    34
    Vote Rating
    0
    Bassem Samy is on a distinguished road

      0  

    Default Answered: Problem with Scripts

    Answered: Problem with Scripts


    Hi, i made a panel , that containes html with an onClick event, the problem is that it hardly fires
    like it doesn't recognize the click event on the mobile phone , any clue ?
    thx
    code:
    Ext.application({
    name: 'Sencha',

    launch: function() {
    alert('launched');
    Ext.create('Ext.Panel', {
    fullscreen: true,
    html: '<div style="width:100%;height:100%" onClick="alert(\'looooool\')">Hello World</div>'
    });
    }
    });

  2. Try:

    Code:
    var panel = Ext.create('Ext.Panel', {
        fullscreen: true,
        html: '<div style="width:100%;height:100%" class="click-me">Hello World</div>',
        listeners : {
            element : 'element',
            tap : function(e, t) {
                var el = e.getTarget('div.click-me');
    
                if (el) {
                    //tap on the <div> with class = "click-me"
                }
            }
        }
    });

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