[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/demos/quickstart/protected/pages/Advanced/ -> Scripts3.page (source)

   1  <com:TContent ID="body" >
   2  <h1 id="6801">Javascript in PRADO, Questions and Answers</h1>
   3  <h2 id="6802">How do I include the predefined Javascript libraries?</h2>
   4  <ul><li>Adding libraries in the template
   5  <com:TTextHighlighter Language="prado" CssClass="source">
   6  &lt;com:TClientScript UsingPradoScripts="effects" /&gt;
   7  </com:TTextHighlighter>
   8      </li>
   9      <li>Adding libraries in PHP code
  10      <com:TTextHighlighter Language="php" CssClass="source">
  11  $this->getPage()->getClientScript()->registerPradoScript("effects");
  12      </com:TTextHighlighter>
  13      </li>
  14  </ul>
  15  The available packaged libraries included in Prado are
  16  <ul>
  17      <li><tt>prado</tt> : basic PRADO javascript framework based on Prototype</li>
  18      <li><tt>effects</tt> : visual effects from script.aculo.us</li>
  19      <li><tt>ajax</tt> : ajax and callback related based on Prototype</li>
  20      <li><tt>validator</tt> : validation</li>
  21      <li><tt>logger</tt> : javascript logger and object browser</li>
  22      <li><tt>datepicker</tt> : datepicker</li>
  23      <li><tt>rico</tt> : Rico library</li>
  24      <li><tt>colorpicker</tt> : colorpicker</li>
  25  </ul>
  26  
  27  <p>The dependencies for each library are automatically resolved. Components
  28  that require a particular library will also automatically load the necessary libraries.
  29  For example, if you add a TDatePicker component on the page, the <tt>datepicker</tt>
  30  and its dependencies will be automatically included on the page.</p>
  31  
  32  <p>See <a href="?page=Controls.ClientScript">TClientScript</a> for options of adding
  33      your custom Javascript code to the page.</p>
  34  
  35  </com:TContent>


Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7