Files
beef/js/log.js
wade@bindshell.net 03ffb4703d Initial Import
git-svn-id: https://beef.googlecode.com/svn/trunk@2 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
2010-01-11 00:54:08 +00:00

30 lines
782 B
JavaScript

// Copyright (c) 2006-2009, Wade Alcorn
// All Rights Reserved
// wade@bindshell.net - http://www.bindshell.net
function refreshlog() {
new Ajax.Updater('logdata', 'logcontrol.php?action=refresh', {asynchronous:true});
update_log_div('logdyn', 'summary');
}
function clearlog() {
new Ajax.Updater('logdata', 'logcontrol.php?action=clear', {asynchronous:false});
refreshlog();
}
function update_log_div(div, action) {
new Ajax.Updater(div, 'logcontrol.php?action=' + action, {asynchronous:true});
}
// --[ LOG CLASS
var Log = Class.create();
Log.prototype = {
initialize: function(frequency) {
this.version = '0.1',
this.authors = 'Wade Alcorn <wade@bindshell.net>',
this.frequency = frequency
},
heartbeat: function() {
update_log_div('logdyn', 'summary');
}
}