AJAX
[ class tree: AJAX ] [ index: AJAX ] [ all elements ]

Source for file bugfixes.php

Documentation is available at bugfixes.php

  1. <?php
  2. /**
  3.  * Simple grab example
  4.  *
  5.  * @category   HTML
  6.  * @package    AJAX
  7.  * @author     Arpad Ray <arpad@php.net>
  8.  * @copyright  2005 Arpad Ray
  9.  * @license    http://www.opensource.org/licenses/lgpl-license.php  LGPL
  10.  * @version    Release: 0.5.4
  11.  * @link       http://pear.php.net/package/HTML_AJAX
  12.  */
  13.  
  14. include 'HTML/AJAX.php';
  15.  
  16. if (isset($_GET['grab'])) {
  17.     die('Grabbed from php!');
  18. }
  19.  
  20. $ajax = new HTML_AJAX();
  21. if ($ajax->handleRequest()) {
  22.     exit;
  23. }
  24.  
  25. ?><html>
  26. <head>
  27. <script type='text/javascript' src="../js/HTML_AJAX.js"></script>
  28. <script type="text/javascript">
  29. var BugFixes = {
  30.     /**
  31.      * @link http://pear.php.net/bugs/11542
  32.      */
  33.     bug11542: function()
  34.     {
  35.         var i = 0;
  36.         result = HTML_AJAX.grab('grab.php?grab=1');
  37.         alert(i);
  38.     }
  39. }
  40. </script>
  41. </head>
  42. <body>
  43. <a href="#" onclick="BugFixes.bug11542();">Test bugfix 11542 (Should alert 0)</a>
  44. </body>
  45. </html>

Documentation generated on Fri, 04 Apr 2008 18:30:13 -0400 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.