PDA

View Full Version : run fine on iphone's browser but not on phonegap emulator



teddyjas
8 Feb 2011, 6:12 PM
hi,

i just started playing around with sencha touch.

I have this code in my app contoller:



show: function(options) {
var id = parseInt(options.id),
nodedetail = app.stores.ads.getById(id),
view = this.detailView;


if (nodedetail ) {
if (!view) {
this.detailView = this.render({
xtype: 'personDetail'
}, false);

view = this.detailView;
}
view.updateWithRecord(nodedetail);
app.views.viewport.setActiveItem(
view, options.animation
);
}
}


personDetail xtype is just a simple ext.panel with hello world :).

the code runs well and will load the panel if I use the iphone's browser directly (using http).

but when I use phonegap's build&run emulator this panel simply is not loaded, it just stay on the existing screen.

anyone can help give me some pointers here? :)

teddyjas
9 Feb 2011, 6:20 PM
anyone??~o)~o)