1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    42
    Vote Rating
    0
    HugoTrigo is on a distinguished road

      0  

    Default Answered: Navigation View Error : Object is not a function

    Answered: Navigation View Error : Object is not a function


    Hi,

    I am creating an application controller to click on the list item and it works perfectly, giving a warning that came in, but when I try to browse the navigationview it gives me error console in your browser!


    Anyone know what's going on?

    Code:

    Code:
    Ext.define('Vive.controller.Main', {    extend: 'Ext.app.Controller',
        alias: 'controller.main',
    
    
        config: {
            refs: {
                list: '#list',
                listNav: '#listNav'
            },
    
    
            control: {
                "#list": {
                    itemtap: 'onListItemTap'
                }
            }
        },
    
    
        onListItemTap: function(dataview, index, target, record, e, eOpts) {
            alert('ENTREI');
    
    
            var me = this;
    
    
            var teste = Ext.create('Ext.panel', {
                html: 'Teste'
            });
    
    
            me.getListNav().push(teste);
        }
    
    
    });
    Error:

    Uncaught TypeError: object is not a functionapp.html:2


    Thanks!

    Best Regards,
    Hugo Trigo

  2. Try to change it to Ext.Panel

  3. #2
    Sencha User
    Join Date
    Dec 2012
    Posts
    30
    Answers
    3
    Vote Rating
    0
    Isnogud is on a distinguished road

      0  

    Default


    Try to change it to Ext.Panel

  4. #3
    Sencha User
    Join Date
    Jan 2013
    Posts
    42
    Vote Rating
    0
    HugoTrigo is on a distinguished road

      0  

    Default


    Really had the small 'p', changed to capital "P" and now it works!

    Thanks!

    Best Regards,
    Hugo Trigo

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..."