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: '錯誤',
20. msg: '出現異常創建失敗,請與管理員聯系.',
21. buttons: Ext.MessageBox.OK,
22. icon: Ext.MessageBox.ERROR
23. });
24. }
25. ,waitMsg: "正在加載數據,請稍候..."
26. });
回復 更多評論