Version Differences for JSXHelloWorld
Line 20:
  <head>   <head>
  <script type="text/javascript">var jsxContext='.'; var jsxLogLevel='INFO';</script>   <script type="text/javascript">var jsxContext='.'; var jsxLogLevel='INFO';</script>
- <script type="text/javascript" src="./jsx/core.jsx"> + <script type="text/javascript" src="./jsx/core.jsx"></script>
  </head>   </head>
  <body>   <body>
- TODO: insert some useful html code here. + <script type="text/javascript">
  + logger.info("Welcome to JSX!");
  + </script>
  </body>   </body>
  </html>   </html>
Line 40:
   
  <pre><nowiki>   <pre><nowiki>
  + jsxPackage("myapp.mypackage", function(thisPackage){
   
  + var EventHandler = jsxImport("jsx.utils.events.EventHandler");
  +
  + jsxClass("MyClass", EventHandler, function(superClass){
  +
  + this.instantiate = function(element){
  + superClass.instantiate.call(this);
  + this.addHandledElement(element);
  + }
  +
  + this.onclick = function(evt){
  + alert("Hello World!");
  + }
  + });
  + });
  </nowiki></pre>   </nowiki></pre>