8dc61af2fa3bcd55dafc2d78dae5114ee7ddfea6.svn-base 973 B

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  2. "http://www.w3.org/TR/html4/strict.dtd">
  3. <html>
  4. <head>
  5. <title>Testing dojo.behavior</title>
  6. <style type="text/css">
  7. @import "../resources/dojo.css";
  8. @import "../../dijit/themes/tundra/tundra.css";
  9. </style>
  10. <script type="text/javascript"
  11. src="../dojo.js" djConfig="isDebug: true"></script>
  12. <script type="text/javascript">
  13. dojo.require("dojo.parser");
  14. dojo.require("dijit.form.Button");
  15. </script>
  16. </head>
  17. <body class="tundra">
  18. <span dojoType="dijit.form.Button">
  19. blah
  20. <script type="dojo/connect">
  21. console.debug(this.domNode.innerHTML);
  22. </script>
  23. <script type="dojo/connect" event="onClick">
  24. alert("we shouldn't see this, it'll be replaced by the next handler");
  25. console.debug(this.domNode.innerHTML);
  26. </script>
  27. <script type="dojo/connect" event="onClick" replace="true">
  28. console.debug(this.domNode.innerHTML.length);
  29. </script>
  30. </span>
  31. </body>
  32. </html>