Just ensure that jQuery-1.2.6 is loaded first, so that it become the
default Query and register it with Versions as 'default'. Then load
jQuery-1.3.2 and call noConflict(true), and register it with Versions
as '1.3'. You shouldn't have to worry about foxycart and it's plugins
then - all you need be concerned with is your own use of plugins.
* Ensure the plugins for use with 1.3 are extreme noConflict
compatible, ie: they are wrapped in a (function($) { ... })(jQuery)
closure, and ensure that jQuery is not referenced anywhere else within
the plugin code.
* Surround loading of your 1.3 plugins as such:
<script>jQuery = Versions.use('jquery','1.3');</script>
... load your plugins ...
<script src="..."></script>
<script>jQuery = Versions.use('jquery','default');</script>
* For simplicity, your page specific code can use:
(function($) { ... })(Versions.use('jquery','1.3'));

Alternatively, if you could register 1.2.6 as '1.2.6' and wrap the
foxycart code with:

(function(jQuery) {

... foxycart code ...

})(Versions.use('jquery','1.2.6'));

I think this should work as long as no references to window.jQuery are
made.


On Feb 28, 8:45 pm, ml1 <tsummer...@gmail.com> wrote:
> This is a FANTASTIC idea.  We desperately need this sort of ability to
> have multiple jquery versions co-exist.  We are working on an
> application that uses foxycart, which is currently locked into 1.2.6.
> Meanwhile, because of a bugfix, we are locked into 1.3.2 or later.
>
> Unfortunately both we and foxycart use various plugins, so I'm not
> sure the extreme noConflict() call will work for us.  Also I'm not
> sure how to enclose foxycart so it uses 1.2.6 because we don't set up
> the foxycart calls, foxycart's js does.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to