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.5.7 Examples</title>
  4. </head>
  5. <body>
  6. <h1>HTML_AJAX 0.5.7 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. <li><a href='action_usage.php'>action_usage.php</a> - Basic HTML_AJAX_Action usage</a></li>
  41. <li><a href='xml_usage.php'>xml_usage.php</a> - Basic XML serializer usage</a></li>
  42. </ul>
  43.  
  44. <p>Real Life Examples</p>
  45. <ul>
  46. <li><a href='login/index.php'>login/index.php</a> - An example creating an AJAX driven login</a></li>
  47. <li><a href='review/index.php'>review/index.php</a> - A simple live review system, AJAX form submission and click to edit</a></li>
  48. <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>
  49. <li><a href='shoutbox.php'>shoutbox.php</a> - How to use AJAX form submission</a></li>
  50. </ul>
  51.  
  52. <p>
  53. 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
  54. </p>
  55. <ul>
  56. <li>server.php    - Basic server operation, serving ajax calls and client lib requests</li>
  57. <li>auto_server.php    - Advanced server operation, only create php classes as needed</li>
  58. <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>
  59. <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>
  60. <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>
  61. <li><a href='server.php?stub=all&gzip=true'>server.php?stub=all&gzip=true</a> - an example with gzip compression enabled (note gzip=true isn't built in, see server.php)<li>
  62. <li><a href='server.php?stub=all&gzip=true'>server.php?stub=all&gzip=true</a> - another example with gzip compression enabled (note gzip=true isn't built in, see server.php)<li>
  63. </ul>
  64.  
  65. <p>
  66. Examples files showing howto use HTML_AJAX_Util javascript class
  67. </p>
  68. <ul>
  69. <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
  70. </ul>
  71.  
  72.  
  73. <p>
  74. Other Example files:
  75. </p>
  76. <ul>
  77. <li><a href='tests/test_speed.php'>test_speed.php</a>    - A basic setup for measuring the speed of calls</li>
  78. <li><a href='tests/test_priority.php'>test_priority.php</a> - A basic test showing how Priority queue works</li>
  79. <li><a href='tests/serialize.php.examples.php'>serialize.php.examples.php</a>    - Internal tests for the php serialize format serializer</li>
  80. <li><a href='tests/serialize.url.examples.php'>serialize.url.examples.php</a>    - Internal tests for the urlencoded format serializer</li>
  81. <li><a href='tests/setInnerHTML.php'>setInnerHTML.php</a>    - Tests used to verify the operation of HTML_AJAX_Util.setInnerHTML</li>
  82. <li><a href='tests/duplicateJSLib.php'>duplicateJSLib.php</a>    - Tests used to verify that HTML_AJAX_Server is removing duplicate JS libraries from client generation correctly</li>
  83. <li><a href='tests/behaviorSpeed.php'>behaviorSpeed.php</a>    - Tests used to see how fast the JavaScript behavior code runs.</li>
  84. <li><a href='tests/helper_combine.php'>helper_combine.php</a>    - Tests used to verify helper url javascript include generation.</li>
  85. <li><a href='interceptors.php'>interceptors.php</a> - Interceptors test</a></li>
  86. </ul>
  87.  
  88. <p>
  89. Javascript and Html Examples:
  90. </p>
  91. <ul>
  92. <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>
  93. </ul>
  94. </body>
  95. </html>

Documentation generated on Mon, 11 Mar 2019 15:59:25 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.