This is a message.

Problem having two jQuery plugins in the same page Created Nov 25, 2010

This thread is solved

Views: 2973     Replies: 15     Last reply Dec 12, 2011  
You must login first before you can use this feature

diegocorzo90

Posts: 1

Registered:
Nov 25, 2010

Problem having two jQuery plugins in the same page

Posted: Nov 25, 2010

Hello,

I am having trouble adding two plugins on the same page. I have tried the 'no.conflict' function but I still can't manage to fix it. Any suggestions? One works, but not the other one.

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="css/styles.css"/>

<!--Cycle-->
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="js/jquery.cycle.min.js"></script>


<!-- LavaLamp -->
<link rel="stylesheet" type="text/css" href="lavalamp/lavalamp_test.css"/>
<script type="text/javascript" src="lavalamp/jquery-1.2.3.min.js"></script>
<script type="text/javascript" src="lavalamp/jquery.easing.min.js"></script>
<script type="text/javascript" src="lavalamp/jquery.lavalamp.min.js"></script>
<script type="text/javascript" src="lavalamp/jquery.lavalamp.js"></script>

<script type="text/javascript">
var $j = jQuery.noConflict();

/* lava lamp*/
$j(function() {
$j("#1, #2, #3").lavaLamp({
fx: "backout",
speed: 700,
click: function(event, menuItem) {
return false;
}
});
});

/* Cycle*/

$(function() {
$('#slideshow').cycle({
fx: 'fade',
delay: -1000
});
});

</script>

cornishman

Posts: 4

Registered:
Nov 28, 2010

» Problem having two jQuery plugins in the same page

Posted: Feb 19, 2011

Reply to: Problem having two jQuery plugins in the same page, from diegocorzo90
I'm watching this one too. Having similar problems with a new project I'm working on.
Hope someone has some advice please.

jeff.deel

Posts: 1

Registered:
Apr 25, 2011

» Problem having two jQuery plugins in the same page

Posted: Apr 25, 2011

Reply to: Problem having two jQuery plugins in the same page, from diegocorzo90
I was running into the same problem while trying to run lavalamp on the same page with a Scrollable box. I traced the issue down to a conflict between jquery tools and the "jquery.easing.min.js" script that was included with lavalamp. My solution was to download the "jquery.easing.1.3.js" and "jquery.easing.compatibility.js" scripts from http://gsgd.co.uk/sandbox/jquery/easing/ and include BOTH of them on my site. This cleared everything up in my case and allowed lavalamp and Scrollable to run together in harmony. I hope this helps!

Unai

Posts: 1

Registered:
May 6, 2011

Problem having two jquery plugins in the same page

Posted: May 6, 2011

Reply to: Problem having two jQuery plugins in the same page, from diegocorzo90
I'm getting this message on firebug uncaught exception: Flowplayer cannot access element: player,. I've try many things and can't get it to work!! I'm trying to use the overlay plugin. Any help will be much appreciated!!!