You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Forum user: robertmglynn

Basic information

Registered Feb 18, 2010
Last login Apr 7, 2010
Forum posts 2
Direct URL http://www.flowplayer.org/forum/users/23282

Latest forum posts

Posts:

Registered:

Handling conflicts in jQuery libraries

Posted: Apr 7, 2010

I've come across the same conflict between jQuery.ui and jQuery.tools. The solution I came up with is to rename the conflicting functions.

Create a js file and include the following:

$.fn.uitabs = $.fn.tabs;
delete $.fn.tabs;
what this does is takes the tabs() function already defined by the first library included and renames it. When the second library defines the tabs() function the first is kept under it's new name (in this case "uitabs", but it can be named whatever you like).

You must include the fix js file between the script tags of the two libraries and remember that the first will be renamed. In this example I am first including the jQuery.ui library, then the fix script, then the jQuery.tools library.

You can then call:

$("#tabs").uitabs(); // $.ui.tabs
$(".tabs").tabs(); // $.tools.tabs

Posts:

Registered:

Anchors as Scrollable items

Posted: Feb 18, 2010