Try to put the code in an anonymous function like so: (function($){
// the code of treeview })(jQuery); More about this method and its purpose you can read - here http://jquery-howto.blogspot.com/2008/12/what-heck-is-function-jquery.html On Thu, Feb 12, 2009 at 12:06 PM, pilgrim <leva...@gmail.com> wrote: > > Hi Ralph, > I don't understand $ alias much. In source code, i changed $ to $jq > for example. But still got conflict. > After all, I changed function name "remove" to "removeNode" in > jquery.treeview.async.js. Oops it does help me. > Thanks for your help. > Van > > On Feb 11, 1:44 pm, Ralph Whitbeck <ralph.whitb...@gmail.com> wrote: >> noConflict will only release the $ back to the other library. >> >> You'll need to go through and update your jQuery lines like so >> >> from >> >> $("div").hide(); >> >> to >> >> jQuery("div").hide(); >> >> http://docs.jquery.com/Core/jQuery.noConflict >> >> Ralph >> >> On Feb 10, 9:59 pm, pilgrim <leva...@gmail.com> wrote: >> >> > Hi, >> > I'm using Tapestry5.018 (using Prototype and Scriptaculous for front >> > end). I love Jquery and try using TreeView plugin for processing tree. >> > Everything is ok so far but a bug with remove function in >> > jquery.treeview.edit.js. >> > With existence of prototype.js , remove a node in tree will remove a >> > tree. >> > Without prototype.js, remove function works ok. >> > I guess there is a conflict between prototype and jquery but can't >> > find the solution. I'd appreciate your help. >> > Note: prototype.js is automatically generated. It always exists. >> > I explicitly called jquery.noConlict(). >> > Thanks and regards, >> > Van