Allan Grant
Allan Grant

Reputation: 3849

How do jQuery modal box plugins compare?

There is a huge number of jQuery modal box plugins out there. Jitter lists 20 of them in this response (Modal windows plugin to rails).

Which one do you use and why? If you use different ones in different cases, how can they be broken down categorically by use-case?

Upvotes: 0

Views: 1097

Answers (3)

Tommy
Tommy

Reputation: 1985

I use Colorbox, it is because it is recommended alternative in non-maintained thickbox.

Basically it allows iframe, so image, flash etc are all okay. Also it is incentive for me to upgrade jQuery to 1.3.2 :-)

Upvotes: 2

AlfaTeK
AlfaTeK

Reputation: 7765

JQuery UI Dialog with a "plugin" to support iframes: http://elijahmanor.com/post/jQuery-UI-Dialog-w-Resizable-iFrame.aspx

I use it because it's included in JQueryUI and uses the jquery ui theme you use, which makes for a consistent UI with little cost

Upvotes: 0

Doug Neiner
Doug Neiner

Reputation: 66191

I pick what I want based on its primary use. The fact that you can use a lightbox variant to show a dialog box, doesn't make it a good candidate in my mind.

Generally if I need to show photos or another iframed web page, I use a lightbox variant. Two that we have used at our studio and been happy with are:

  1. Slimbox 2 (Just photos)
  2. Colorbox (Pretty much any type of content)

For dialog type behavior, I highly recommend using jQuery UI's dialog. It is in active development, and is super customizable.

[rant] Whatever you do please don't use SimpleModal unless you need its special type of callbacks. Otherwise, when you try to hook into an onClose callback, you'll find yourself having to perform the actual closing of the box. Just my two cents on that one. :) I just know it has come up a few times here in SO, and it just feels awkward to use IMO [/rant]

Upvotes: 2

Related Questions