PageRenderTime 122ms CodeModel.GetById 81ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 0ms

/pyjs/tests/test014.js

http://pyjamas.googlecode.com/
JavaScript | 15 lines | 13 code | 2 blank | 0 comment | 0 complexity | 86b0fe08e37558ada615574838d516e3 MD5 | raw file
 1function greet(sender) {
 2    Windows_alert("Hello AJAX!");
 3}
 4
 5
 6__Hello.prototype.__class__ = "Hello";
 7function Hello() {
 8    return new __Hello();
 9}
10function __Hello() {
11}
12__Hello.prototype.onModuleLoad = function() {
13    var b = ui_Button("Click me", greet);
14    ui_RootPanel().add(b);
15};