Hi, I was looking through the Effects Treasure chest and added Effect.Center as I need it, but I was wondering...what is the process for adding these effects? is it a case of adding to effects.js and ensuring you do not overwrite your in use effects.js with any new releases? is there a way of ensuring you can still use your added effects and preserve the natural upgrade path of Scrip.aculo.us? Many thanks --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---
I have a file in the scrtipaculous folder called "custom.js" which has my extensions or overrides. Then just alter scriptaculous.js to load that file last... (includes ? includes[1] : ''builder,effects,dragdrop,controls,slider,custom'').split('','').each( function(include) { Scriptaculous.require(path+include+''.js'') }); On 9/26/06, The Manhatten Project <teammacromedia-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Hi, > > I was looking through the Effects Treasure chest and added > Effect.Center as I need it, but I was wondering...what is the process > for adding these effects? is it a case of adding to effects.js and > ensuring you do not overwrite your in use effects.js with any new > releases? is there a way of ensuring you can still use your added > effects and preserve the natural upgrade path of Scrip.aculo.us? > > Many thanks > > > > >-- Ryan Gahl Application Development Consultant Athena Group, Inc. Inquire: 1-920-954-9798 x2903 Blog: http://www.someElement.com --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---
Just stick them in a new file that you include just like you include scriptaculous.js or effects.js. :) With Rails, you automatically get a application.js file you can use for this purposes (but you can do the same thing with other server-side environments. Be sure to include effects.js (or scriptaculous.js) first, then include your .js file. Best, Thomas Am 26.09.2006 um 22:56 schrieb The Manhatten Project:> > Hi, > > I was looking through the Effects Treasure chest and added > Effect.Center as I need it, but I was wondering...what is the process > for adding these effects? is it a case of adding to effects.js and > ensuring you do not overwrite your in use effects.js with any new > releases? is there a way of ensuring you can still use your added > effects and preserve the natural upgrade path of Scrip.aculo.us? > > Many thanks > > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---