Web UI for ARGUS server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 lines
894 B

//<?php require_once('../../js_asm.php'); ?>
function loadDashBoard(){
if( tlInterval!= null ){
window.clearInterval( tlInterval );
tlInterval = null;
timelineObj = null;
};
Ext.Ajax.request({
url: '/lib/controller/getDashBoardItems.php',
params: {
SITE: <?=$SiteID;?>,
UID: <?=$UserID;?>,
SID: '<?=$Session;?>'
},
success: function( response, opts ){
var data = Ext.decode(response.responseText);
var tPanel = Ext.getCmp('main_content');
tPanel.remove(0);
tPanel.add( data );
tPanel.doLayout();
var player = videojs('hls-example');
player.play();
},
failure: function( response, opts ) {
var tPanel = Ext.getCmp('main_content');
tPanel.remove(0);
tPanel.add( { html: 'Failed to load dashboard!' } );
tPanel.doLayout();
}
});
};