SimpleModal 1.2 Released
December 4th, 2008After almost 11 months, I have finally released an update to SimpleModal.
This release fixes a number of browser related issues (mostly with IE) but also adds a few new features.
Some of the features include:
- Automatic centering of the modal dialog, unless overridden with the new
positionoption - Ability to call
$.modal.close();from theonClosecallback without causing infinite loop - Eliminated the need for external CSS for IE6 dialog positioning
- Added a
zIndexoption for compatibility with other plugins - Element resizing when the browser size is changed
- Added an IFRAME to every modal dialog to prevent object bleed-through
Please see the project page for a full list of features, changes and upgrading instructions.
I also updated the demos, including the contact form, which now has the option to display a subject and cc field, UTF-8 support and minor security features.
If you find any issues or have any questions, please let me know.
Tags: browser, javascript, jquery, modal dialog, plugin, simplemodal, user interface

Iframes are not allowed due to W3C standards. May be you should find another way, cause people who try to follow W3C will avoid your plugin.
i’ll post some more comments when i test it
Author Comment
Eric Martin December 5th, 2008 at 7:37 am@CharnaD – Can you elaborate on “iframes are not allowed due to the W3C standards”?
If it is an issue, the iframe can be “turned off” using the iframe option:
Or:
The reason for using the iframe is to prevent object bleed-through. Also, the iframe is always used for IE6 to prevent form element bleed-through. There are always other ways, but using an iframe seems to be the “easiest”
I appreciate your comments/feedback!
[...] NicEdit WYSIWYG Editor by Bill Beckelman 5. December 2008 11:21 With the release of Eric Martin’s version 1.2 of the SimpleModal jQuery Plugin, I wanted to take a look at the new code and changes. At the same time I decided to try out the [...]
Author Comment
Eric Martin December 5th, 2008 at 3:36 pm@all – In 1.2.1, I changed the default for the
iframeoption tofalse.I agree with CharnaD. iframes are seen as a security risk these days. I love simplemodal but don’t really use it because of the iframes issue.
Author Comment
Eric Martin March 25th, 2009 at 6:28 am@response-guy – I assume that you comment is just spam, but I’m not sure, so I thought I’d let it through.
First, sure an iframe *could* be a security risk, but since you are the developer controlling the code/site, I don’t see how that concern is relevant here. Second, what iframe issues are you talking about? Third, this post is from last year.
So, if you are a real person with real questions/concerns, please clarify.