|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /var/www/html/networkmonitor/ajaxMyTop/js/ |
Upload File : |
AggStats = Class.create();
AggStats.prototype = {
initialize: function () {
this.statsCallback = {
success: handleStatsResponse,
failure: handleStatsResponse,
scope: this
}
},
getStats: function(){
var request = "";
var statsURL = "explain.php?Id="+this.threadId;
YAHOO.util.Connect.asyncRequest("GET", statsURL, this.statsCallback);
},
handleStatsResponse: function(request){
eval(request.responseText);
if(explain.error){
alert("ERROR:" + explain.error);
} else {
this.sql = explain.sql;
this.tables = explain.tables;
this.displayExplanation.call(this);
}
}
};