01.Ext.getCmp('collect_task_form').getForm().load({
02. url: "./collectTaskView.do"
03. ,params: {
04. id: id
05. }
06. ,success: function(form, action){
07. //Ext.example.msg('編輯', '載入成功!');
08. //alert(Ext.getCmp("data").getValue());
09. var o = Ext.util.JSON.decode(action.response.responseText);
10. if (o) {
11. var root = o.root;
12. var pack = root[0];
13.
14. alert(pack.displayName);
15. }
16. }
17. ,failure: function(form, action){
18. Ext.MessageBox.show({
19. title: '錯(cuò)誤',
20. msg: '出現(xiàn)異常創(chuàng)建失敗,請(qǐng)與管理員聯(lián)系.',
21. buttons: Ext.MessageBox.OK,
22. icon: Ext.MessageBox.ERROR
23. });
24. }
25. ,waitMsg: "正在加載數(shù)據(jù),請(qǐng)稍候..."
26. });
回復(fù) 更多評(píng)論