[Proto-Scripty] Re: Alternatives to Protosafe?

2009-07-10 Thread Josh Powell
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

[Proto-Scripty] Re: Alternatives to Protosafe?

2009-07-10 Thread Josh Powell
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

[Proto-Scripty] Re: Alternatives to Protosafe?

2009-07-09 Thread Alex McAuley
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

[Proto-Scripty] Re: Alternatives to Protosafe?

2009-07-09 Thread Diodeus
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

[Proto-Scripty] Re: Alternatives to Protosafe?

2009-07-09 Thread waldron.r...@gmail.com
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

[Proto-Scripty] Re: Alternatives to Protosafe?

2009-07-09 Thread Alex McAuley
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