开发者

To save the form (Code in EXTJS)

开发者 https://www.devze.com 2023-02-18 02:24 出处:网络
What is thisurl:\'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.

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);

});


  1. You have to listen to click event of Save button
  2. in that listener function, you have to call .getForm().submit()
0

精彩评论

暂无评论...
验证码 换一张
取 消