You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

146 regels
6.3 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>Creating Pages &mdash; Documentation</title>
  7. <link rel="stylesheet" href="_static/sphinxdoc.css" type="text/css" />
  8. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: '',
  12. VERSION: '',
  13. COLLAPSE_MODINDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="_static/jquery.js"></script>
  19. <script type="text/javascript" src="_static/doctools.js"></script>
  20. <link rel="top" title="Documentation" href="index.html" />
  21. <link rel="up" title="2. Building an Application" href="build_app.html" />
  22. <link rel="next" title="Creating Reports" href="creating_reports.html" />
  23. <link rel="prev" title="Client Side Scripts" href="client_side_script.html" />
  24. </head>
  25. <body>
  26. <div style="background-color: #FFF; text-align: left; padding: 8px 0px"><img src="_static/banner300910.gif"></div>
  27. <div class="related">
  28. <h3>Navigation</h3>
  29. <ul>
  30. <li class="right" style="margin-right: 10px">
  31. <a href="genindex.html" title="General Index"
  32. accesskey="I">index</a></li>
  33. <li class="right" >
  34. <a href="modindex.html" title="Global Module Index"
  35. accesskey="M">modules</a> |</li>
  36. <li class="right" >
  37. <a href="creating_reports.html" title="Creating Reports"
  38. accesskey="N">next</a> |</li>
  39. <li class="right" >
  40. <a href="client_side_script.html" title="Client Side Scripts"
  41. accesskey="P">previous</a> |</li>
  42. <li><a href="index.html">Documentation</a> &raquo;</li>
  43. <li><a href="build_app.html" accesskey="U">2. Building an Application</a> &raquo;</li>
  44. </ul>
  45. </div>
  46. <div class="sphinxsidebar">
  47. <div class="sphinxsidebarwrapper">
  48. <h3><a href="index.html">Table Of Contents</a></h3>
  49. <ul>
  50. <li><a class="reference external" href="">Creating Pages</a><ul>
  51. <li><a class="reference external" href="#page-elements">Page Elements</a></li>
  52. <li><a class="reference external" href="#scripting-pages">Scripting Pages</a></li>
  53. </ul>
  54. </li>
  55. </ul>
  56. <h4>Previous topic</h4>
  57. <p class="topless"><a href="client_side_script.html"
  58. title="previous chapter">Client Side Scripts</a></p>
  59. <h4>Next topic</h4>
  60. <p class="topless"><a href="creating_reports.html"
  61. title="next chapter">Creating Reports</a></p>
  62. <h3>This Page</h3>
  63. <ul class="this-page-menu">
  64. <li><a href="_sources/creating_pages.txt"
  65. rel="nofollow">Show Source</a></li>
  66. </ul>
  67. <div id="searchbox" style="display: none">
  68. <h3>Quick search</h3>
  69. <form class="search" action="search.html" method="get">
  70. <input type="text" name="q" size="18" />
  71. <input type="submit" value="Go" />
  72. <input type="hidden" name="check_keywords" value="yes" />
  73. <input type="hidden" name="area" value="default" />
  74. </form>
  75. <p class="searchtip" style="font-size: 90%">
  76. Enter search terms or a module, class or function name.
  77. </p>
  78. </div>
  79. <script type="text/javascript">$('#searchbox').show(0);</script>
  80. </div>
  81. </div>
  82. <div class="document">
  83. <div class="documentwrapper">
  84. <div class="bodywrapper">
  85. <div class="body">
  86. <div class="section" id="creating-pages">
  87. <h1>Creating Pages<a class="headerlink" href="#creating-pages" title="Permalink to this headline">¶</a></h1>
  88. <p>Pages can be used to make custom interfaces. A Page is a container where you can add custom HTML.</p>
  89. <p>A Page has full access to the Client APIs and you can build very rich interfaces using Pages</p>
  90. <div class="section" id="page-elements">
  91. <h2>Page Elements<a class="headerlink" href="#page-elements" title="Permalink to this headline">¶</a></h2>
  92. <p>A page is where you can add</p>
  93. <ul class="simple">
  94. <li>Content - that goes in the container div</li>
  95. <li>Client Script - functions, events</li>
  96. <li>CSS - style</li>
  97. <li>Static Content - content for search engines</li>
  98. <li>Roles - roles that are allowed to view the page</li>
  99. </ul>
  100. </div>
  101. <div class="section" id="scripting-pages">
  102. <h2>Scripting Pages<a class="headerlink" href="#scripting-pages" title="Permalink to this headline">¶</a></h2>
  103. <p>User defined page functions can be added to the &#8220;pscript&#8221; namespace.</p>
  104. <p>When a page is loaded, the function &#8220;<a href="#id1"><span class="problematic" id="id2">pscript.onload_</span></a>&#8221; + the page name is called if it is declared. On refresh,
  105. the function &#8220;<a href="#id3"><span class="problematic" id="id4">pscript.refresh_</span></a>&#8221; + the page name is called.</p>
  106. <p>For example for a page called &#8220;MyHome&#8221;, the function called onload is pscript.onload_MyHome();</p>
  107. <p>For more ideas, see the cookbook</p>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. <div class="clearer"></div>
  114. </div>
  115. <div class="related">
  116. <h3>Navigation</h3>
  117. <ul>
  118. <li class="right" style="margin-right: 10px">
  119. <a href="genindex.html" title="General Index"
  120. >index</a></li>
  121. <li class="right" >
  122. <a href="modindex.html" title="Global Module Index"
  123. >modules</a> |</li>
  124. <li class="right" >
  125. <a href="creating_reports.html" title="Creating Reports"
  126. >next</a> |</li>
  127. <li class="right" >
  128. <a href="client_side_script.html" title="Client Side Scripts"
  129. >previous</a> |</li>
  130. <li><a href="index.html">Documentation</a> &raquo;</li>
  131. <li><a href="build_app.html" >2. Building an Application</a> &raquo;</li>
  132. </ul>
  133. </div>
  134. <div class="footer">
  135. &copy; Copyright 2010, Rushabh Mehta.
  136. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.3.
  137. </div>
  138. </body>
  139. </html>