New to Javascript/jQuery. I was looking for a good popup solution then I found the jQuery plugin SimpleModal, from Eric Martin, which seemed to be quite popular. I am curious as to why people would choose plugins like SimpleModal over the jQuery UI Dialog. What are the pros and cons when comparing the two? Thanks.
4 Answers
Here was my response to someone on Twitter with a similar question:
it really depends on your needs. @SimpleModal is more of a clean slate to build from and establish your own look and feel.
Others have summed up the pros and cons quite well. I call SimpleModal a modal dialog framework. It gives you the bare-bones to create modal dialogs that fit your needs.
However, jQuery UI is an awesome library and if you are using other jQuery UI components, want the styling "out of the box", or want to use the theming ability, it's a great choice as well!

- 2,841
- 2
- 23
- 23
-
1It's great to see your reply. I remember seeing you on this site and thus was trying to pass on this question to you but didn't know how. I have been playing around with SimpleModal today and I like how simple it is to my use. Thanks for contributing your hard work to the open community. Much appreciated! – tamakisquare Jun 13 '11 at 23:23
I haven't personally used SimpleModal, but it looks like it is more of a lightweight solution. Instead of using the bulky jQuery UI (bulky, that is if you are only using it for a dialog), then it would be much faster to send clients JS for a simple modal to display messages.
Here is a breakdown:
jQueryUI:
- Great if you are using many of its components, such as the dialog, datepicker, drag and drop, etc...
- Maintains a uniform and clean look across all of your AJAX components
- Bulky if only used for one of its components
SimpleModal:
- Less JS, CSS, and images to send to user, relieving some server resources, and client download time
- Great choice if you are only using AJAX for dialogs on your site
- Not so consistent with the look and feel of other jQuery components, if you plan to integrate more, such as a date-picker
In the end, it is really up to you, but here are some pointers.
Hope that helps.

- 16,871
- 33
- 101
- 195
Just use what you need. Do you need the entire JQuery UI framework or do you need a modal popup?

- 11,077
- 18
- 94
- 182
-
1That's the answer I was gonna give. Plus SimpleModal offers a different thought process and options. And Eric Martin is a super cool guy. :) – JAAulde Jun 13 '11 at 21:51
-
1
-
Dosen't matter, you can download only the parts you want of jQuery UI. – eric.itzhak May 22 '12 at 12:37
There are pros & cons to each...
jQueryUI gives you a whole bunch of tools with a whole bunch of configuration options. jQueryUI also gives you themes that can be applied to all the tools. You are not required to install the entire jQueryUI library in order to use one component, so bulk should not be an issue. However, I think with all the options comes a steeper learning curve.
Individual plugins tend to be more of a complete solution out-of-the-box, IMHO. Some plugins are well written and some are a mess. You'll have to research each and test the demos thoroughly. You may have to configure them and tweak the CSS to your liking but I think when you pick a quality plugin such as SimpleModal, you're a lot closer to a final working product than if you started with jQueryUI.

- 98,165
- 25
- 199
- 285
-
1Very good point on the bulkiness of jQueryUI. Like the others, I thought that would be an issue, but then I overlooked the fact that jQuery allow users to build their own jQuery UI package by keeping only the needed components. And yes, quality plugins, like SimpleModal, give you less to worry or think about when configurations kick in. – tamakisquare Jun 13 '11 at 23:31