Difference between revisions of "Server-monitor.as"
From Organic Design wiki
(use item=data,data format) |
(make a long line) |
||
Line 4: | Line 4: | ||
server.onLoad = function(success) { | server.onLoad = function(success) { | ||
if (success) { | if (success) { | ||
− | rc.htmltext="<font color=#FFF>hello</font>"; | + | rc.htmltext="<font color=#FFF>hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello </font>"; |
} | } | ||
}; | }; | ||
Line 15: | Line 15: | ||
border = false; | border = false; | ||
multiline = true; | multiline = true; | ||
− | wordWrap = | + | wordWrap = true; |
html = true; | html = true; | ||
} | } |
Revision as of 03:48, 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 hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello "; } };
// Textbox createTextField( 'rc', 1, 0, 0, 190, 200 ); with (rc) { selectable = false; _quality = 'BEST'; border = false; multiline = true; wordWrap = true; html = true; }
// Per-frame function
function reduce() {
// Make request on some regular cycle which seems about right
server.sendAndLoad( '/wiki/index.php', server, 'GET' );
}