2 jQuery plugins don't seem to work together
Posted
by Carbonara
on Stack Overflow
See other posts from Stack Overflow
or by Carbonara
Published on 2010-02-02T19:36:41Z
Indexed on
2010/03/27
1:33 UTC
Read the original article
Hit count: 776
jQuery
|jquery-tools
I have 2 plugins, amongst several others, that are loaded together. All of them work together correctly expect 2. By commenting out bits of code etc I've narrowed it down to the two plugins. These are the 2 plugins in question jQuery Tools tabs and NewsTicker
I have tried calling them as follows as per their instructions
$(document).ready(function(){
$().newsTicker({
newsList: "#news",
startDelay: 10,
placeHolder1: " []"
});
$("ul.tabs").tabs("div.panes > div");
});
With the calls this way around the ticker works but the tabs do not. If I swap the calls round then the tabs work but the ticker does not. Both plugins work if the other call is commented out.
Any ideas what could be wrong here or could something in the code of one of the plugins be affecting the other. Both plugins work ok when several other plugins are also called in the same script. I'm just wondering if I'm calling them in the wrong way or something being fairly new to jQuery
© Stack Overflow or respective owner