Using 4.1.3, I would like to make use of the "Effect" features provided by
Scriptaculous... for example:

<div onclick="new Effect.SwitchOff(this)">
    Click here to make this text disappear
</div>

If I put that code in a regular Tapestry page, nothing happens (because the
required javascript files are not included), however if I add the "Suggest"
component to the page, it works just fine.

How does the suggest component get Tapestry to automatically include the
appropriate prototype+scriptaculous scripts that it requires? How can I
specify the scripts I need for a custom component?

Or in other words (I think)... how do I do this with Scriptaculous? :
dojo.require("some.dojo.feature")

Thanks,
Jim
-- 
View this message in context: 
http://www.nabble.com/T4.1%3A-Scriptaculous---automatically-adding-required-js-files-tf4632239.html#a13227495
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to