I have one main view that has about ten links on it. Each link currently opens a modal window using an iframe (colorbox plugin) which loads another view into the iframe modal window. Each one of these forms are hooked up to the jquery validate and jquery form plugins.
Once a form is submitted using the jquery form 开发者_运维问答plugin a method on the parent page is called from the modal window to make some updates on the main view page.
This all works just fine but I am wondering if there is a better way to accomplish this without iframes? I have seen examples where the modal window is loaded as a partial in the main view and displayed inline. This might be great for one or two modal windows but I have about ten.
Any suggestions are appreciated.
Thanks
Check out jQuery.UI Dialog http://jqueryui.com/demos/dialog/
I use jquery fancybox for things like this www.fancybox.net
精彩评论