2011-04-12 73 views
0

我是新手到Ext JS ...我想將Ext JS表單數據發佈到服務器... 我該如何繼續?我使用的Ext JS與鐵軌...... 我跟隨鏈接:Ext JS With rails但沒有運氣..extjs form post rails

+0

thanx但我不想使用Netzke&我發現解決方案..'''''var sbtn = Ext.getCmp('submitbtn'); sbtn.on( '點擊',函數(){VAR FRM = Ext.getCmp( 'FormPanel中'); frm.el.unmask(); frm.getForm()提交( URL =「/客戶如果@ customer.save format.json {render:json => @customer();};}在軌道控制器中: ,:success => true,:message =>「Created new User #{@customer.id}」,::custdata => @customer} end' – Shruti 2011-04-12 10:21:59

回答

0

您提供關於寧靜的Ext JS的存儲操作討論鏈接。看看這個simple example from the same site

您也可以使用Nomad提到的Netzke。但是,我不確定該框架與新版Ext Js的兼容性。如果您打算使用Ext Js,我建議您立即開始使用Ext JS 4。