The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
jQueryUI Frame Dialog
Creates a jQuery.FrameDialog namespace with functions that enhances jQueryUI's Dialog. You can use this extension's .create method the same as an initial call to jQuery.dialog, I've added a url option, and changed a couple defaults to make a little more sense in this context.
The main method will actually create the iframe and append it to the body. Pass the options to the jQueryUI .dialog method, then return the resulting jQuery collection. Upon closing the dialog, it will be removed from the DOM.
Example:
jQuery.FrameDialog
//create will make an iframe based on the url, other options are
// passed to jQueryUI's dialog command.
.create({
url: baseURL + '/modal.html',
title: 'test title'
})
//create returns a jQuery object for the dialog created,
// from here you can do your event binding.
.bind('dialogclose', function(event, ui) {
alert("result:" + event.result);
});Within the modal window's iframe, you can set the result value via jQuery.FrameDialog.setResult(value).
The modal url will need to be on the same host as the parent in order to set a return value.
