Difference between revisions of "Server-monitor.as"

From Organic Design wiki
(hack hack)
(use item=data,data format)
Line 1: Line 1:
 
// Set up async connection with server
 
// Set up async connection with server
 
server = new LoadVars();
 
server = new LoadVars();
server.title = 'Server-monitor-data-file'; // wiki page to request
+
server.title = 'RC-Summary'; // wiki page to request
 
server.onLoad = function(success) {
 
server.onLoad = function(success) {
 
if (success) {
 
if (success) {
rc.htmltext="<font color=#ff0000>hello</font>";
+
rc.htmltext="<font color=#FFF>hello</font>";
 
}
 
}
 
};
 
};

Revision as of 03:42, 20 March 2006

// Set up async connection with server server = new LoadVars(); server.title = 'RC-Summary'; // wiki page to request server.onLoad = function(success) { if (success) { rc.htmltext="hello"; } };

// Textbox createTextField( 'rc', 1, 0, 0, 190, 200 ); with (rc) { selectable = false; _quality = 'BEST'; border = false; multiline = true; wordWrap = false; html = true; }


// Per-frame function function reduce() {

// Make request on some regular cycle which seems about right

       server.sendAndLoad( '/wiki/index.php', server, 'GET' );

}