You are here: Foswiki>Tasks Web>Item8612 (01 Mar 2010, MichaelDaum)Edit Attach

Item8612: Add qTip plugin

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: JQueryPlugin
Branches:
Reported By: PaulHarvey
Waiting For:
Last Change By: MichaelDaum
Very heavy plugin; way too big. But, awesomely powerful. And the code doesn't look too nightmarish, unlike some other jq tooltip plugins.

http://craigsworks.com/projects/forums/thread-new-forum-new-releases

Says they are releasing 1.0.0 in a few days, and 2.0 is being developed. So it's active, another bonus.

-- PaulHarvey - 24 Feb 2010

Which feature do you need the current tooltip library does not provide?

Please don't just go ahead and check it in. Otherwise we end up with lots of redundant jQuery parts.

I'd like to keep it a more consistent selection of useful things.

If there's a plugin that serves as a replacement of another, e.g. qtip vs jqTooltips, or nifty versus jqCorner, then one of it should be deprecated.

Each feature should be implemented using the jQuery plugin that does the job best.

Judging from the demos of qtip, lots of it can be done using the current jqTooltip already or using simplemodal or using imagetooltips from ImagePlugin.

-- MichaelDaum - 24 Feb 2010

My main attraction to qTip is the comprehensive events API, and extremely precise control over the formatting in the tooltips. But you are right, is basically a whole new modal dialogue system that has been completely over-engineered a solution for tooltips.

But it has decent documentation and the author seems to have adopted some jslint principles.

I could not easily see how to populate a tooltip using the existing plugin with arbitrary HTML via ajax, but perhaps that is a sign I should be using modal plugin instead.

I will remove qTip from JQueryPlugin.

-- PaulHarvey - 25 Feb 2010

but if it solves your problems nicely and you want to share it, you could repackage just the qTip bits and simply list JQueryPlugin as a dependency.

-- WillNorris - 25 Feb 2010

Reverted checkin. I will either re-write my app with modal or make qTip a plugin.

Apart from the vast array of configuration possibilities, event handlers, etc. Some complexity that qTip takes care of is intelligent placement of the popup, I don't want to have to reinvent the wheel, so I will probably make this a plugin.

-- PaulHarvey - 25 Feb 2010

Paul, see the ImagePlugin's jquery.imagetooltip.js how it loads content into the tooltip body using ajax.

-- MichaelDaum - 25 Feb 2010

Closing this one. Please open another task to make qTip a plugin of its own.

-- MichaelDaum - 01 Mar 2010
Topic revision: r9 - 01 Mar 2010, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy