Tag: extjs

Sencha在iPhone模拟器中parsingJSON,但不支持iPhone – phonegap

我在Sencha Touch应用程序中有以下代码,用于parsing来自服务器的JSON响应。该应用程序被封装在Phonegap上,并被部署为iPhone上的本机应用程序。 此代码在iPhone模拟器上正常工作,但不在iPhone本身。 有一个类似的问题已经漫游围绕SO,没有答案: JSON不加载在iPhone设备,而使用sencha触摸和phonegap Ext.Ajax.request({ url: makeurl, //'http://hostname/index.php?id=1234&action=STARTLIST&cmd=0', scope : this, success: function(response){ GoRemote.views.devicelist.setLoading(false); GoRemote.serverstatus="Ok"; Ext.getCmp('serverstatuspanel').update('Server Status : Okay'); this.listData = Ext.decode(response.responseText); console.log(response); if (this.listData.listresponse) { GoRemote.stores.RoomDeviceListStore.loadData(this.listData.listresponse.listdata, false); GoRemote.views.toolbar.setTitle(this.listData.listresponse.listinfo.listname); if(this.listData.listresponse.listinfo.container){ Ext.getCmp('btnBack').setVisible(true); } else{ Ext.getCmp('btnBack').setVisible(false); } } else if(this.listData.listcontrol){ if(this.listData.listcontrol.controlinfo.name=="NIAVDevice"){ Ext.getCmp('navigation').setActiveItem(0); } } }, failure:function(response){ GoRemote.serverstatus="Unable to reach director"; Ext.getCmp('serverstatuspanel').update('Server Status : Unable to reach […]

如何从Sencha Touch / Phonegap应用程序中的虚拟键盘中删除“下一步”和“上一步”button

所以我有这个使用Sencha Touchbuild立的Phonegap应用程序。 我有一个用户input一些信息的textarea控件。 当箱子变得焦点时,它会popup虚拟键盘。 但是虚拟键盘上有下一个上一个和完成的button。 如何删除下一个和上一个button? 无论如何,他们似乎没有做任何事情。