/source/Plug-in/xajax/examples/xul/xulClient.xul

http://prosporous.googlecode.com/ · Unknown · 44 lines · 40 code · 4 blank · 0 comment · 0 complexity · 613f50eb7644d36f60ed3152a7a5ec77 MD5 · raw file

  1. <?php
  2. echo '<?xml version="1.0" encoding="UTF-8"?>';
  3. echo '<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>';
  4. ?>
  5. <!--
  6. File: xulClient.xul
  7. Example which demonstrates a XUL application with xajax. XUL will only
  8. work in Mozilla based browsers like Firefox.
  9. Title: XUL Example - Client
  10. Please see <copyright.inc.php> for a detailed description, copyright
  11. and license information.
  12. -->
  13. <!--
  14. Section: XUL example
  15. - <xulServer.php> (this file)
  16. - <xulClient.xul>
  17. - <xulApplication.php>
  18. -->
  19. <!--
  20. @package xajax
  21. @version $Id: xulClient.xul 362 2007-05-29 15:32:24Z calltoconstruct $
  22. @copyright Copyright (c) 2005-2006 by Jared White & J. Max Wilson
  23. @license http://www.xajaxproject.org/bsd_license.txt BSD License
  24. -->
  25. <window id="example-window" title="Exemple 2.2.1"
  26. xmlns:html="http://www.w3.org/1999/xhtml"
  27. xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  28. <script type="application/x-javascript">
  29. // <![CDATA[
  30. xajax = {};
  31. xajax.config = {};
  32. xajax.config.waitCursor = false;
  33. xajax.config.statusMessages = true;
  34. xajax.config.requestURI = './xulServer.php';
  35. // ]]>
  36. </script>
  37. <script type="application/x-javascript" src="../../xajax_js/xajax_core.js"></script>
  38. <!--<script type="application/x-javascript" src="../../xajax_js/xajax_debug.js"></script>-->
  39. <button id="testButton" oncommand="xajax.call('test', { parameters: [] } );" label="Test" />
  40. </window>