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

Source for file index.php

Documentation is available at index.php

  1. <html>
  2. <head>
  3. <title>HTML_AJAX 0.3.4 Examples</title>
  4. </head>
  5. <body>
  6. <h1>HTML_AJAX 0.3.4 Examples</h1>
  7. <p>
  8. These are examples showing the basics of using HTML_AJAX
  9. </p>
  10.  
  11. <p>
  12. These examples show off many of the features of HTML_AJAX, but you'll find them most useful as a learning tool.  
  13. Reading through the commented code as you view the examples in your browser.
  14. </p>
  15.  
  16. <p>
  17. These examples are available online at: http://bluga.net/projects/HTML_AJAX or in your local PEAR install in the documentation dir.
  18.  
  19. On most Linux systems the location is /usr/share/pear/docs/HTML_AJAX/examples/
  20.  
  21. You can find the location of your PEAR documentation dir running
  22. <code>pear config-get doc_dir</code>
  23. </p>
  24.  
  25. <p>The term proxy in these examples refers to a javascript class that is generated and has functions that map to the eqivalent php class.
  26. These proxy classes work much in the same way as a SOAP proxy class that is generated from wsdl.
  27. </p>
  28.  
  29. <p>
  30. Front end files for examples, you can actually run these and see some example output
  31. </p>
  32. <ul>
  33. <li><a href='proxyless_usage.php'>proxyless_usage.php</a> - Using HTML_AJAX in standalone mode, possible doesn't require PHP or any backend HTML_AJAX classes</li>
  34. <li><a href='proxy_usage_inline_javascript.php'>proxy_usage_inline_javascript.php</a> - Single file proxy style usage</li>
  35. <li><a href='proxy_usage_server.php'>proxy_usage_server.php</a> - Multi-file proxy usage, either server file could be used with this example</li>
  36. <li><a href='queue_usage.php'>queue_usage.php</a> - An example of using a queue to manage ajax calls, a simple live search example</li>
  37. <li><a href='helper_usage.php'>helper_usage.php</a> - An example showing the basics of the helper api</li>
  38. <li><a href='form.php'>form.php</a> - Basic AJAX form submission example</a></li>
  39. </ul>
  40.  
  41. <p>Real Life Examples</p>
  42. <ul>
  43. <li><a href='login/index.php'>login/index.php</a> - An example creating an AJAX driven login</a></li>
  44. <li><a href='review/index.php'>review/index.php</a> - A simple live review system, AJAX form submission and click to edit</a></li>
  45. <li><a href='guestbook/index.php'>guestbook/index.php</a> - A simple guestbook system, uses action system so you never write a line of javascript</a></li>
  46. <li><a href='shoutbox.php'>shoutbox.php</a> - How to use AJAX form submission</a></li>
  47. </ul>
  48.  
  49. <p>
  50. 2 server examples are provided, both provide the same output but the auto_server example has code to help you deal with managing multiple ajax classes
  51. </p>
  52. <ul>
  53. <li>server.php    - Basic server operation, serving ajax calls and client lib requests</li>
  54. <li>auto_server.php    - Advanced server operation, only create php classes as needed</li>
  55. <li><a href='server.php?client=util,main'>server.php?client=util,main</a> - server.php generating a javascript file with the main and util libs in it</li>
  56. <li><a href='auto_server.php?stub=test2'>server.php?stub=test2</a> - auto_server.php generating a javascript file a which contains a generated proxy class for the test2 php class</li>
  57. <li><a href='auto_server.php?stub=all'>server.php?stub=all</a> - auto_server.php generating a javascript file which contains proxies for all the php classes registered with it</li>
  58. </ul>
  59.  
  60. <p>
  61. Examples files showing howto use HTML_AJAX_Util javascript class
  62. </p>
  63. <ul>
  64. <li><a href='tests/js_utils_vardump.php'>js_utils_vardump.php</a>    - Shows the output of HTML_AJAX_Util.varDump() and compares its against PHP's var_dump
  65. </ul>
  66.  
  67.  
  68. <p>
  69. Other Example files:
  70. </p>
  71. <ul>
  72. <li><a href='tests/test_speed.php'>test_speed.php</a>    - A basic setup for measuring the speed of calls</li>
  73. <li><a href='tests/test_priority.php'>test_priority.php</a> - A basic test showing how Priority queue works</li>
  74. <li><a href='tests/serialize.php.examples.php'>serialize.php.examples.php</a>    - Internal tests for the php serialize format serializer</li>
  75. <li><a href='tests/serialize.url.examples.php'>serialize.url.examples.php</a>    - Internal tests for the urlencoded format serializer</li>
  76. </ul>
  77.  
  78. <p>
  79. Javascript and Html Examples:
  80. </p>
  81. <ul>
  82. <li><a href="tests/test_behavior.html">test_behavior.html</a> - A short overview of how to use behavior.js.  Behavior uses css selectors to apply javascript behaviors without throwing lots of javascript handlers into your html.</li>
  83. </ul>
  84. </body>
  85. </html>

Documentation generated on Mon, 11 Mar 2019 14:35:54 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.