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.4.0 Examples</title>
  4. </head>
  5. <body>
  6. <h1>HTML_AJAX 0.4.0 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='slow_livesearch.php'>slow_livesearch.php</a> - An example showing how the ordered queue can be used to manage high latency</li>
  38. <li><a href='helper_usage.php'>helper_usage.php</a> - An example showing the basics of the helper api</li>
  39. <li><a href='form.php'>form.php</a> - Basic AJAX form submission example</a></li>
  40. </ul>
  41.  
  42. <p>Real Life Examples</p>
  43. <ul>
  44. <li><a href='login/index.php'>login/index.php</a> - An example creating an AJAX driven login</a></li>
  45. <li><a href='review/index.php'>review/index.php</a> - A simple live review system, AJAX form submission and click to edit</a></li>
  46. <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>
  47. <li><a href='shoutbox.php'>shoutbox.php</a> - How to use AJAX form submission</a></li>
  48. </ul>
  49.  
  50. <p>
  51. 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
  52. </p>
  53. <ul>
  54. <li>server.php    - Basic server operation, serving ajax calls and client lib requests</li>
  55. <li>auto_server.php    - Advanced server operation, only create php classes as needed</li>
  56. <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>
  57. <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>
  58. <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>
  59. </ul>
  60.  
  61. <p>
  62. Examples files showing howto use HTML_AJAX_Util javascript class
  63. </p>
  64. <ul>
  65. <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
  66. </ul>
  67.  
  68.  
  69. <p>
  70. Other Example files:
  71. </p>
  72. <ul>
  73. <li><a href='tests/test_speed.php'>test_speed.php</a>    - A basic setup for measuring the speed of calls</li>
  74. <li><a href='tests/test_priority.php'>test_priority.php</a> - A basic test showing how Priority queue works</li>
  75. <li><a href='tests/serialize.php.examples.php'>serialize.php.examples.php</a>    - Internal tests for the php serialize format serializer</li>
  76. <li><a href='tests/serialize.url.examples.php'>serialize.url.examples.php</a>    - Internal tests for the urlencoded format serializer</li>
  77. <li><a href='tests/setInnerHTML.php'>setInnerHTML.php</a>    - Tests used to verify the operation of HTML_AJAX_Util.setInnerHTML</li>
  78. </ul>
  79.  
  80. <p>
  81. Javascript and Html Examples:
  82. </p>
  83. <ul>
  84. <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>
  85. </ul>
  86. </body>
  87. </html>

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