I figured it out. To get galleria.js to work with scriptaculous, you must alter the gallera.js file by changing adding a variable change noConflict to the top and then change all of the $ into that new variable. Then add a normal noConflict to the calling function that is on your page.
On Jan 12, 12:31 pm, Mike Santini <[email protected]> wrote: > thanks for the reply. > > I'm trying this, but i'm fairly sure i'm doing it wrong. I'm not much > of a developer. let me explain what i'm doing so that it may better > help with things. > > I'm making a simple portfolio website for my gf using animations from > script.aculo.us. I want to use galleria.js for the gallery though. > > The first time I included galleria.js and jquery.js none of my > animations worked. I found jQuery.noConflict(); and inserted it into > the line of code you put on your page for galleria.js like this: > > <script type="text/javascript"> > jQuery.noConflict(); > > jQuery(function($) { $('ul.gallery').galleria(); }); > </script> > > Once I used jQuery.noConflict(); my animations started working, but > galleria.js still doesn't work. I've used galleria.js in the past, > though not with another library, so I'm pretty sure i'm implementing > galleria correctly. > > Should I try to edit the galleria.js? I tried to put jQuery.noConflict > (); in the galleria.js file and nothing seemed to happen. > > I'm not sure how just assigning jquery to a new variable works. It > seems too simple to wrap my head around. > > Thanks for the help. > > On Jan 12, 5:04 am, "Alex McAuley" <[email protected]> > wrote: > > > > > try assigning jquery to a new variable.. > > > $j=jQuery.noConflict(); > > > Alex Mcauleyhttp://www.thevacancymarket.com > > > ----- Original Message ----- > > From: "Mike Santini" <[email protected]> > > To: "Prototype & script.aculo.us" <[email protected]> > > Sent: Tuesday, January 12, 2010 6:26 AM > > Subject: [Proto-Scripty] Prototype and Galleria.js > > > > Greetings, > > > I'm still new at this, but here is my problem. > > > > I'm currently using prototype and script.aculo.us for animations on my > > > a website. I want to use galleria.js for an image gallery, but i can't > > > seem to get them to cooperate. I've used jQuery.noConflict(); and my > > > animations run, but none of the galleria code wants to work. > > > > I looked around and all I could find was was information about > > > protosafe.js, but nothing else. Has anyone here been able to get > > > galleria.js to work with prototype and script.aculo.us? > > > > Thank you very much. > > > --------------------------------------------------------------------------- > > ----- > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.
-- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.
