From af68030fcf0c266300feb2c100149ecadef7d364 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 16 Jul 2006 01:50:23 +0000 Subject: Merge from 3.0 branch till 1264. --- .../protected/pages/Controls/ClientScript.page | 36 +++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'demos/quickstart/protected/pages/Controls/ClientScript.page') diff --git a/demos/quickstart/protected/pages/Controls/ClientScript.page b/demos/quickstart/protected/pages/Controls/ClientScript.page index 5dab41d5..d5687fb1 100644 --- a/demos/quickstart/protected/pages/Controls/ClientScript.page +++ b/demos/quickstart/protected/pages/Controls/ClientScript.page @@ -1,23 +1,23 @@ -

TClientScript

+

TClientScript

-

Including Bundled Javascript Libraries in Prado

+

Including Bundled Javascript Libraries in Prado

-TClientScript 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 -UsingPradoScripts property. Multiple bundled javascript libraries -can be specified using comma delimited string of the name of javascript library +TClientScript 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 +PradoScripts 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.

-<com:TClientScript UsingPradoScripts="ajax, effects" /> +<com:TClientScript PradoScripts="ajax, effects" />

- The available bundled libraries included in Prado are + The available bundled libraries included in Prado are

-

The dependencies for each library are automatically resolved. That is, +

The dependencies for each library are automatically resolved. That is, specifying, say the "ajax", will also include the "prado" library.

- -

Including Custom Javascript Files

-

Custom javascript files can be register using the ScriptUrl property. -The following example includes the javascript file "test.js" to the page. In this case, the file + +

Including Custom Javascript Files

+

Custom Javascript files can be register using the ScriptUrl 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 dynamic asset tag, 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:TClientScript ScriptUrl=<%~ test.js %> /> -

You can include javascript files from other servers by specifying the full URL string in +

You can include Javascript files from other servers by specifying the full URL string in the ScriptUrl property.

-

Including Custom Javascript Code Blocks

+

Including Custom Javascript Code Blocks

Any content within the TClientScript control tag will be considered as - javascript code and will be rendered where it is declared.

+ Javascript code and will be rendered where it is declared.

\ No newline at end of file -- cgit v1.2.3