Results 1 to 2 of 2

Thread: Script run on PC, but iPod

  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    4
    Vote Rating
    0
      0  

    Default Script run on PC, but iPod

    Hi all,
    this is my script:
    Code:
    Ext.regModel('Table',{
        fields: [
            {name: 'name', type: 'string'},
            {name: 'order', type: 'boolean', defaultValue: false}
        ]
    });
    
    var tableList = new Ext.data.Store({
        model: 'Table',
        sorters: 'name',
        data: [
            {name: '100'},
            {name: '101'},
            {name: '102'},
            {name: '103'}
        ]
    });
    
    var listTable = new Ext.List({
        layout: 'fit',
        multiSelect: true,
        cls:'listTable',
        fullscreen:true,
        xtype: 'list',
        store: tableList, 
        itemTpl: '<span>{name}</span>',
        itemSelector: '.x-list-item',
        listeners: {
            itemtap: function (list, index, item){
                panelMain.setActiveItem(panelFoods);
                list.getRecord(item).set('order','true');
                list.select(index, true, false);
            }
        }
        
    });
    
    var panelRoom = new Ext.Panel({
        layout:'fit',
        title: 'panel Rooms',
        iconCls: 'user',
        badgeText: 'bT',
        items: [listTable]
    });
    
    // Order
    var panelOrder = new Ext.Panel({
        layout:'fit',
        title: 'panel Order',
        iconCls: 'compose',
        items: []
    });
    
    //Foods
    var panelFoods = new Ext.Panel({
        layout:'fit',
        title: 'panel Foods',
        iconCls: 'bookmarks',
        html:'panel Foods'
    });
    
    var panelMain = new Ext.TabPanel({
        tabBar: {
            dock: 'bottom',
            ui: 'dark',
            layout: {
                type: 'hbox',
                align: 'center',
                pack: 'center'
            }
        },
        fullscreen: true,
        cardSwitchAnimation: 'slide',
        items: [panelRoom, panelOrder, panelFoods]
    });
    
    Ext.setup({
        fullscreen: true,
        onReady:function(){
            panelMain.show();
        }
    });
    On PC, after click on an item, console throw me a warning: "DataView: select will be removed, please access select through a DataView's SelectionModel, ie: view.getSelectionModel().select()" on sencha-touch-debug.js:22873 and still work, but when i run on iPod, it show a blank page.
    How can i fix it?

    --------
    When i shake iPod, the blank page change to show. But i don't know why
    Last edited by tycoi2005; 22 Feb 2011 at 6:53 PM. Reason: add info

  2. #2
    Sencha User
    Join Date
    Dec 2010
    Posts
    4
    Vote Rating
    0
      0  

    Default finish

    I solved this problem, thx everybody!
    Code:
    Ext.setup({
        fullscreen: true,
        onReady:function(){
            var panelMain = new Ext.TabPanel({
        tabBar: {
            dock: 'bottom',
            ui: 'dark',
            layout: {
                type: 'hbox',
                align: 'center',
                pack: 'center'
            }
        },
        fullscreen: true,
        cardSwitchAnimation: 'slide',
        items: [panelRoom, panelOrder, panelFoods]
    });
        }
    });

Similar Threads

  1. [OPEN-770] setActiveItem failing on iPod Touch
    By ynonp in forum Sencha Touch 1.x: Bugs
    Replies: 0
    Last Post: 13 Feb 2011, 2:02 AM
  2. Is it possible to focus a iphone/ipod field with extjs
    By jframier in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 13 Jan 2011, 10:16 AM
  3. [OPEN-586] iPod Touch Ext.is.iPod
    By ch.zh.students in forum Sencha Touch 1.x: Bugs
    Replies: 4
    Last Post: 1 Dec 2010, 10:10 PM
  4. Playing Songs from the iPod Library
    By shellgrit in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 22 Aug 2010, 10:36 PM
  5. gxt on iphone & ipod touch
    By kht in forum Community Discussion
    Replies: 0
    Last Post: 3 Nov 2008, 12:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •