diff options
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/ClientScript.page')
-rw-r--r-- | demos/quickstart/protected/pages/Controls/ClientScript.page | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/demos/quickstart/protected/pages/Controls/ClientScript.page b/demos/quickstart/protected/pages/Controls/ClientScript.page index 7c643a82..d5687fb1 100644 --- a/demos/quickstart/protected/pages/Controls/ClientScript.page +++ b/demos/quickstart/protected/pages/Controls/ClientScript.page @@ -4,20 +4,20 @@ <com:DocLink ClassPath="System.Web.UI.WebControls.TClientScript" /> <h2 id="2202">Including Bundled Javascript Libraries in Prado</h2> <p> -<tt>TClientScript</tt> allows javascript code to be insert or linked to the -page template. Prado is bundled with a large library of javascript functionality -including effects, AJAX, basic event handlers, and many others. The bundled -javascript libraries can be linked to the current page template using the -<tt>UsingPradoScripts</tt> property. Multiple bundled javascript libraries -can be specified using comma delimited string of the name of javascript library +<tt>TClientScript</tt> allows Javascript code to be insert or linked to the +page template. PRADO is bundled with a large library of Javascript functionality +including effects, AJAX, basic event handlers, and many others. The bundled +Javascript libraries can be linked to the current page template using the +<tt>PradoScripts</tt> property. Multiple bundled Javascript libraries +can be specified using comma delimited string of the name of Javascript library to include on the page. For following example will include the "ajax" and "effects" library. </p> <com:TTextHighlighter Language="prado" CssClass="source"> -<com:TClientScript UsingPradoScripts="ajax, effects" /> +<com:TClientScript PradoScripts="ajax, effects" /> </com:TTextHighlighter> <p> - The available bundled libraries included in Prado are + The available bundled libraries included in Prado are <ul> <li><tt>prado</tt> : basic prado javascript framework based on Prototype</li> <li><tt>effects</tt> : visual effects from script.aculo.us</li> @@ -29,12 +29,12 @@ to include on the page. For following example will include the "ajax" and "effec <li><tt>colorpicker</tt> : colorpicker</li> </ul> </p> -<p>The dependencies for each library are automatically resolved. That is, +<p>The dependencies for each library are automatically resolved. That is, specifying, say the "ajax", will also include the "prado" library.</p> - + <h2 id="2203">Including Custom Javascript Files</h2> -<p>Custom javascript files can be register using the <tt>ScriptUrl</tt> property. -The following example includes the javascript file "test.js" to the page. In this case, the file +<p>Custom Javascript files can be register using the <tt>ScriptUrl</tt> property. +The following example includes the Javascript file "test.js" to the page. In this case, the file "test.js" is relative the current template you are using. Since the property value is <a href="?page=Configurations.Templates3">dynamic asset tag</a>, the file "test.js" will be published automatically, that is, the file will be copied to the assets directory if necessary. @@ -42,11 +42,11 @@ automatically, that is, the file will be copied to the assets directory if neces <com:TTextHighlighter Language="prado" CssClass="source"> <com:TClientScript ScriptUrl=<%~ test.js %> /> </com:TTextHighlighter> -<p>You can include javascript files from other servers by specifying the full URL string in +<p>You can include Javascript files from other servers by specifying the full URL string in the <tt>ScriptUrl</tt> property.</p> <h2 id="2204">Including Custom Javascript Code Blocks</h2> <p> Any content within the <tt>TClientScript</tt> control tag will be considered as - javascript code and will be rendered where it is declared.</p> + Javascript code and will be rendered where it is declared.</p> </com:TContent>
\ No newline at end of file |