It’s been awhile since I modified the jQuery UI Frame Dialog plugin to include a loading image/css to display while the iFrame’s content is loaded. My original post is located here.
I’ve noticed (so have others here, here, etc…) that the iFrame’s content is requested multiple times. If you’re interest in the reasons why the iFrame’s content is loaded multiple times, you can read about it here and here. I’ve modified the plugin to avoid the multiple loads issue. The modified JavaScript file can be downloaded by viewing source on the demo page here.
Again, I’ve tried to contact the original jQuery UI Frame Dialog’s author; however I’ve been unsuccessful. So, rather than take ownership of the plugin, I’ve modified the version number with a .# extension that will serve as the version number of my modifications. So, this specific version of the plugin has a file name of: jquery-framedialog-1.1.2.1.js.
I’ve tested the modified plugin on IE 8/9, Firefox 6.0.2, and Chrome 14.0.835.163 and it appears to be avoiding the multiple load issue.
Thanks for reading…