// function updateDashBoardItemLayout( id, x, y ){ Ext.Ajax.request({ url: '/lib/controller/updateDashBoardItems.php', params: { SITE: , UID: , SID: '', PANEL: id, X: x, Y: y }, success: function( response, opts ){ //var data = Ext.decode(response.responseText); //var tPanel = Ext.getCmp('main_portal'); //tPanel.removeAll(true); //for( i=0; i < data.length; i++) tPanel.add( data[i] ); //tPanel.doLayout(); }, failure: function( response, opts ) { //var tPanel = Ext.getCmp('main_portal'); //tPanel.remove(0); //tPanel.add( { html: 'Failed to load dashboard!' } ); //tPanel.doLayout(); } }); }; function loadDashBoard(){ if( tlInterval!= null ){ window.clearInterval( tlInterval ); tlInterval = null; timelineObj = null; }; Ext.Ajax.request({ url: '/lib/controller/getDashBoardItems.php', params: { SITE: , UID: , SID: '' }, success: function( response, opts ){ var data = Ext.decode(response.responseText); var tPanel = Ext.getCmp('main_portal'); tPanel.removeAll(true); for( i=0; i < data.length; i++) tPanel.add( data[i] ); tPanel.doLayout(); }, failure: function( response, opts ) { var tPanel = Ext.getCmp('main_portal'); tPanel.remove(0); tPanel.add( { html: 'Failed to load dashboard!' } ); tPanel.doLayout(); } }); };