Re: How to use noConflict to get JQuery and Ajax(Wonder)workingtogether?

2010-08-04 Thread Ravi Mendis
You may find conflicts even within the Prototype + Scriptaculous "family" of javascripts available out there... ...adding jQuery and its set of plugins to the mix is really not worth the headache :) I'd use one or the other NOT both. Just my 2cents... On 05/08/2010, at 9:47 AM, David BON wrot

Re: How to use noConflict to get JQuery and Ajax(Wonder)workingtogether?

2010-08-04 Thread David BON
After reading that page, I remember to have seen it before but it lack of the Horizontal split capability... So, back to jQuery... Regards. David B. Le 5 août 10 à 00:30, David BON a écrit : You're right, all that is to achieve my goal to include splitpanes in a webObjects app. What you

Re: How to use noConflict to get JQuery and Ajax(Wonder)workingtogether?

2010-08-04 Thread David BON
You're right, all that is to achieve my goal to include splitpanes in a webObjects app. What you say with a prototype solution sounds perfect! I'll try that. I suppose I will have another opportunity later to enter into this jQuery thing... Thanks a lot. David B. Le 4 août 10 à 23:01, Fa

Re: How to use noConflict to get JQuery and Ajax(Wonder)workingtogether?

2010-08-04 Thread Farrukh Ijaz
Thanks Mike for the tip. It means instead of find-replace, I can modify the splitter.js and wrap the whole script in jQuery.noConflict()(); ? Farrukh On 2010-08-05, at 1:43 AM, Mike Schrag wrote: > You can do it a little easier, because noConflict can be chained: > > jQuery.noConflict()(funct

Re: How to use noConflict to get JQuery and Ajax(Wonder)workingtogether?

2010-08-04 Thread Farrukh Ijaz
David, I guess you're struggling with the issue of implementing split panes. Check the following site: http://www.jools.net/projects/javascript/splitpanes/ (right-click and view source to see which *.js are included) It shows split panes demo but does not use jQuery. It's based on prototype ex

Re: How to use noConflict to get JQuery and Ajax (Wonder)workingtogether?

2010-08-04 Thread David BON
Thanks again, and it is what I was "affraid" of (and what confuses me) :-(... I really dislike such local modification of external library as any forthcoming update could leave this copy changed aside (or erase the changes)... We miss a mecanism that could allow to change automatically al

Re: How to use noConflict to get JQuery and Ajax (Wonder)workingtogether?

2010-08-04 Thread Mike Schrag
You can do it a little easier, because noConflict can be chained: jQuery.noConflict()(function() { // wrap your code that uses jQuery $ }); So you might still have to wrap your original lib, but at least you don't have to muck with $'s all over the place. ms On Aug 4, 2010, at 6:35 PM, Far

Re: How to use noConflict to get JQuery and Ajax (Wonder)workingtogether?

2010-08-04 Thread Farrukh Ijaz
This is not so straight as splitter.js is using jQuery. So even if you use jQuery.noConflict(), it won't work as splitter.js will be using $ sign assuming it's using jQuery but in fact the $ sign is occupied by prototype library. A simple solution to this is copy the splitter.js to splitter-jqu

Re: How to use noConflict to get JQuery and Ajax (Wonder) workingtogether?

2010-08-04 Thread David BON
Thanks. Seems really straightforward. Last doubt: shall I put this onConflict call before the inclusion of the splitter.js (as it could use the '$')? Regards. David B. Le 4 août 10 à 22:19, Farrukh Ijaz a écrit : Hi David, You simply need to add following two lines in the head section:

Re: How to use noConflict to get JQuery and Ajax (Wonder) workingtogether?

2010-08-04 Thread Farrukh Ijaz
Hi David, You simply need to add following two lines in the head section: jQuery.noConflict(); From there onwards you need to use jQuery instead of $ sign. Alternatively you can use a short name such as: var j = jQuery.noConflict(); And instead of using $ sign or jQuery, you can use 'j'