I have a website that is rendering a prototype based calender on 90% of the pages. I’m also looking at using the Uploadify module for handling multiple uploads with Paperclip. As you know, Paperclip and JQuery don’t play nicely and a lot of the solutions I’ve tried such as NoConflict hasn’t worked for me I still get the “not defined” errors in firebug all over the place. I’m wondering what the best way for me to approach adding this JQuery module that will be very localized in a largely Prototype-based application. I’ve considered switching my Prototype code with JQuery but I’ve yet to see a better JQuery solution for this particular calendar plugin that I’m using.
Share
Use a proper structure for noConflict.
If this doesn’t answer your question, please provide more(some) code.
Edit for comments:
Just run the
$.noConflict()immediately following your jQuery plugins, and then usejQueryinstead of the$variable throughout your JS files.sample js file:
If you need a document ready, you can do it this way: