Why choose SimpleModal over jQuery UI Dialog?
Asked Answered
A

4

5

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.

Away answered 13/6, 2011 at 21:25 Comment(0)
I
2

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.

Interradial answered 13/6, 2011 at 22:6 Comment(1)
Very 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.Away
M
4

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!

Miscellany answered 13/6, 2011 at 22:30 Comment(1)
It'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!Away
B
3

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.

Blackface answered 13/6, 2011 at 21:56 Comment(0)
S
2

Just use what you need. Do you need the entire JQuery UI framework or do you need a modal popup?

Synaesthesia answered 13/6, 2011 at 21:49 Comment(3)
That's the answer I was gonna give. Plus SimpleModal offers a different thought process and options. And Eric Martin is a super cool guy. :)Garner
Appreciate the comment @JAAulde!Miscellany
Dosen't matter, you can download only the parts you want of jQuery UI.Randle
I
2

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.

Interradial answered 13/6, 2011 at 22:6 Comment(1)
Very 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.Away

© 2022 - 2024 — McMap. All rights reserved.