0

I have a problem with jquery loading because prototype.
This is script that I use:

<script type="text/javascript" src="prototype.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
...
..
..
<script language="javascript">
function show(obj,msg){
messageBox.style.top=obj.offsetTop
messageBox.style.left=obj.offsetLeft+obj.offsetWidth+5
contents.innerHTML=msg+"<p>"+obj.href
messageBox.style.display="block"
}
</script>

Between "..." I have a few more jquery scripts that working without conflict with prototype.js because I change $ to jQuery but in this script that I show you above I don't have any $ symbol, I don't have anything to change it's simple script. I've tried a lot of things, to put jQuery.noConflict() after script, to change script place, but without success. The script works only if I delete prototype.js row.
I hope that the solution is simple, maybe I'm just too tired.

Thank in advance!

// Script source: Click Here Post: #2

2
Contributors
1
Reply
7
Views
4 Years
Discussion Span
Last Post by LastMitch
0

Between "..." I have a few more jquery scripts that working without conflict with prototype.js because I change $ to jQuery but in this script that I show you above I don't have any $ symbol, I don't have anything to change it's simple script. I've tried a lot of things, to put jQuery.noConflict() after script, to change script place, but without success. The script works only if I delete prototype.js row.
I hope that the solution is simple, maybe I'm just too tired.

You can take a look at here (there are a couple of ways to work around it):

http://forum.jquery.com/topic/jquery-conflicts-with-prototype-and-the-fix

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.