PageRenderTime 56ms CodeModel.GetById 21ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1, Apache-2.0
  1. function greet(sender) {
  2. Windows_alert("Hello AJAX!");
  3. }
  4. __Hello.prototype.__class__ = "Hello";
  5. function Hello() {
  6. return new __Hello();
  7. }
  8. function __Hello() {
  9. }
  10. __Hello.prototype.onModuleLoad = function() {
  11. var b = ui_Button("Click me", greet);
  12. ui_RootPanel().add(b);
  13. };