How to resolve JavaScripts Conflict


#1

How to resolve the javascripts conflicts between jQuery.js and
prototype.js.

Thanks
Salil


#2

http://lmgtfy.com/?q=jquery+with+prototype

On Wed, Feb 25, 2009 at 8:57 AM, Salil G.


#3

On Wed, Feb 25, 2009 at 5:57 AM, Salil G. <
removed_email_address@domain.invalid> wrote:

How to resolve the javascripts conflicts between jQuery.js and
prototype.js.

Hi, what conflict you’re having in regards to jQuery and prototype?
I’m
guess that you’re talking
about the use of $(…). Here’s a good post on a blog:

http://disjointthoughts.com/2007/08/17/getting-thickbox-jquery-and-prototype-to-play-together-nicely/

Good luck,

-Conrad


#4

Thanx 2 both of u for a quick reply.
My problem is if Both libraries included then only first library works.
i.e. if i include prototype.js then jQuery.js then only prototype.js
works.
on change select list and toggle box which used jQuery.js doesn’t work.

Conrad T. wrote:

On Wed, Feb 25, 2009 at 5:57 AM, Salil G. <
removed_email_address@domain.invalid> wrote:

How to resolve the javascripts conflicts between jQuery.js and
prototype.js.

Hi, what conflict you’re having in regards to jQuery and prototype?
I’m
guess that you’re talking
about the use of $(…). Here’s a good post on a blog:

http://disjointthoughts.com/2007/08/17/getting-thickbox-jquery-and-prototype-to-play-together-nicely/

Good luck,

-Conrad


#5

i am using…

Prototype JavaScript framework, version 1.6.0.1

jQuery 1.2.3 - New Wave Javascript

rails-2.0.2


#6

I will include jquery first, than include prototype:

<%= javascript_include_tag "jquery" %> <%= javascript_include_tag "prototype" %>

or You can write jQuery code by this way:

On Wed, Feb 25, 2009 at 11:16 PM, Salil G. <
removed_email_address@domain.invalid> wrote:


TWRUG Blog:
http://blog.rubyonrails.org.tw

CFC on Rails:
http://zusocfc.blogspot.com

Only two surfaces of a box:
http://blog.pixnet.net/zusocfc