Hi guys: I'm trying to get both jQuery (specifically in this example
with prettyphoto but would like to use other jquery elements as well)
and prototype to work together but none of the docs I see online seem to
be working for me. Here is my application layout:
but once I did that, all my prototype helpers died.
Can anyone point me to a solution? Ideally, I like to keep all of my
prototype helpers in place and also use jquery ui plugins like
prettyphoto, date/time pickers, and the rest.
Your noConflict solution is almost right. There is an error in that you call jquery (with lower case ‘q’) instead of jQuery (with upper case ‘Q’). This is probably also the reason why the rest of your javascripts / Prototype helpers stop working.
Your noConflict solution is *almost* right. There is an error in that
you
call jquery (with lower case 'q') instead of jQuery (with upper case
'Q').
This is probably also the reason why the rest of your javascripts /
Prototype helpers stop working.
Hmm, strange – do you get some sort of javascript error?
/Lasse
No actually. Nothing happens at all. The jquery works (I think, can't
relly test it since i can't get to the page i need to test it on without
the prototype helpers) but the prototype is hosed. If I need to rewrite
all of my helpers thats a huge ton of work.
Hmm, strange – do you get some sort of javascript error?
/Lasse
No actually. Nothing happens at all. The jquery works (I think, can't
relly test it since i can't get to the page i need to test it on without
the prototype helpers) but the prototype is hosed. If I need to rewrite
all of my helpers thats a huge ton of work.
Thanks...chris
Actually...it gets even stranger, actually. When I first load it up, I
can use jquery OR prototype. But as soon as I use prototype, jquery
stops working. Prototype continues to work, but jquery is hosed. I guess
prototype takes back control or something?
Ok I made the changes and I get the same result. I load the page, and
click a link that use prettyphoto. it works. so jquery runs on load. If
I keep clicking on other jquery items, they work too. But as soon as i
click on a prototypre helper, the jquery stops running.
PS. Don't know if the loading of tooltip should be moved down below
jQuery
or Prototype – it depends on what it relies on.
/Lasse
Same result....sorry
I tried removing the tooltip and even moving the position of prototype
above jquery. Works on load, then craps out as soon as I click on a
prototype helper. Is there any way for me to reload jquery again or in
some other space on the page? Can i run it in it own namespace or
something??
PS. Don't know if the loading of tooltip should be moved down below
jQuery
or Prototype – it depends on what it relies on.
/Lasse
Same result....sorry
I tried removing the tooltip and even moving the position of prototype
above jquery. Works on load, then craps out as soon as I click on a
prototype helper. Is there any way for me to reload jquery again or in
some other space on the page? Can i run it in it own namespace or
something??
Thanks...Chris
Any ideas? I'm at a total loss here. Prototype takes over right after
the first time I use it. I'm sure that someone out the has done this.
Please advise.