Where The Streets Have No Name

sencha touch에서 외부html 로딩 본문

Developement/Mobile

sencha touch에서 외부html 로딩

highheat 2011. 8. 23. 10:34
Ext.setup({
    tabletStartupScreen: 'tablet_startup.png',
    phoneStartupScreen: 'phone_startup.png',
    icon: 'icon.png',
    glossOnIcon: false,
    onReady: function() {
        var panel = new Ext.TabPanel({
			tabBar: {
				dock: 'bottom',
				ui: 'light',
				layout: {
					pack: 'center'
				}
			},
			fullscreen: true, 
			cardSwitchAnimation: 'slide',//'fade', 'slide', 'flip', 'cube', 'pop', 'wipe'
			items: [aboutPanel]
		});
        
        Ext.Ajax.request({
            url: 'about.html',
            success: function(response) {            	
            	aboutPanel.update(response.responseText);
            }
        });
    }
});