Dashboard > Castle Contrib > ... > Castle.MonoRail.ViewComponents > InsertJavascriptComponent
InsertJavascriptComponent
Added by James Curran, last edited by James Curran on Sep 22, 2007
Labels: 
(None)


InsertJavascriptComponent Class

ViewComponent to insert the Javascript segments that were build using JavascriptComponent and [JavascriptHelper]. The set is intended to be an enhanced version of "capturefor(javascript)

Remarks

InsertJavascriptComponent is a companion component to JavascriptHelper and JavascriptComponent, and is of little use unless used with one or both of those. It is a line component which can take one optional parameter.

Parameter Description
Std A comma or space seaparated list of the standard Javascript files to include. Will automatically include needed requestisits. It can include any of the following.
Keyword Script
ajax prototype.js
behavior
or
behaviour
behaviour.js
scriptaculous
or
effects2
Script.aculo.us
effectsfat effectsfat.js
validate Validate.Config
Validate.Core
Validate.Validators
Validate.Lang

public class InsertJavascriptComponent

Example

See JavascriptComponent for an example of usage.

See Also

[JavascriptHelper] | JavascriptComponent

Site running on a free Atlassian Confluence Community License granted to Castle Project. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators