What is this url:'save-form.php' ???? is this the url where entered data is going to save after clicking save button ???? I'm not getting error but data is not saving. var simple = new Ext.FormPanel({ labelWidth: 75, url:'save-form.php', frame:true, title: 'Simple Form', bodyStyle:'padding:5px 5px 0', width: 350, defaults: {width: 230}, defaultType: 'textfield',
items: [{
fieldLabe开发者_如何学Gol: 'First Name',
name: 'first',
allowBlank:false
},{
fieldLabel: 'Last Name',
name: 'last'
}],
buttons: [{
text: 'Save'
},{
text: 'Cancel'
}]
});
simple.render(document.body);
});
- You have to listen to click event of Save button
- in that listener function, you have to call .getForm().submit()
精彩评论