You cannot safely add Prototype to the target pages. Prototype
changes javascript in general, not just jQuery. It adds methods to
native objects. If the target pages are already running jQuery in
noConflict() mode then you won't interfere, but if you put their pages
in noConflict() mode then
If other libraries or js code extend the native objects with the same
methods, the one included last wins. In this case, it will almost
always be prototype because he is loading it dynamically.
On Jul 10, 1:04 pm, Matt Foster mattfoste...@gmail.com wrote:
Besides the $ function and using
You could check for the jQuery object - this will get round jQuery...
if(jQuery) {
..
}
There must be prototype only objects/functions/classes you can test for in
prototype
I am not sure about other libraries but i think extjs uses the Ext.
namespace and similar
I'd rather not test for conflicts, but rather to safely coexist.
On Jul 9, 4:48 pm, Alex McAuley webmas...@thecarmarketplace.com
wrote:
You could check for the jQuery object - this will get round jQuery...
if(jQuery) {
..
}
There must be prototype only
Alex, he can just check for Prototype :)
if ( Prototype ) {
.
}
-Original Message-
Date: Thursday, July 09, 2009 4:48:45 pm
To: prototype-scriptaculous@googlegroups.com
From: Alex McAuley webmas...@thecarmarketplace.com
Subject: [Proto-Scripty] Re: Alternatives to Protosafe?
You
Doh!... didnt think of that
- Original Message -
From: waldron.r...@gmail.com
To: prototype-scriptaculous@googlegroups.com
Sent: Thursday, July 09, 2009 9:58 PM
Subject: [Proto-Scripty] Re: Alternatives to Protosafe?
Alex, he can just check for Prototype :)
if ( Prototype