A
A
Andrew2011-05-16 16:07:26
JavaScript
Andrew, 2011-05-16 16:07:26

Prototype + jQuery 1.4.2 - 1.6.1 + FancyBox or any other extension?

The essence of the problem: there is a site in which everything is mixed in the script part, namely Prototype and jQuery. Everything would be fine, but only they conflict with each other. Not even so - jQuery plugins conflict - they simply do not connect, even jQueryUI does not want to work, for any call to methods other than those stored in the file with jQuery. I don’t know what to do, I already tried noConflict in different places, both before connecting Prototype, and after, and in two places at once - the result is the same :(
Can you tell me what to do?
“Uncaught TypeError: Object # Object> has no method 'methodName'" to any method

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim, 2011-05-16
@Bublik

Can it be expedient to rewrite everything under one framework?

S
sody, 2011-09-06
@sody

Recently faced the same problem. Project on tapestry 5 (in which the client part is based on prototype), it was necessary to fasten jquery plugins to it. The line at the end of jquery.js helped:

var j$ = jQuery.noConflict();

After that $(...) is prototype, j$(...) is jquery.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question