has anyone checked out open rico <http://openrico.org/>?
its built on prototype and it has a module loading mechanism
different than scriptaculous.  so what you do on a given page
is load rico.js, then you have access to the module loader,
which is used simply, by
Rico.loadModule('moduleName');
which you can pass multiple parameters or call multiple times.
then there is a sister method, Rico.onLoad(), which will fire once
all the modules loaded by loadModule are available in the dom.
it also has a list of module dependencies akin to what
Shakakai was talking about (abbreviated here)
  moduleDependencies : {
    Accordion  : ['ricoBehaviors.js','ricoEffects.js','ricoComponents.js'],
    Color      : ['ricoColor.js'],
    Corner     : ['ricoStyles.js'],
    DragAndDrop: ['ricoDragDrop.js'],

one reason i like it is you can load w/e you like on the initial page;
then later on, if you need some additional functionality, you can just
call Rico.loadModule() again.  it doesnt play nice w/ scriptaculous
tho :(  i have to end up loading some files directly by using <script>
tags sent by the server when using them in tandem.

-nathan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to