Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 16, 2013 08:43 AM by crazyim
Aug 07, 2012 10:19 AM|LINK
In my iframed document I have a button that opens up a jQuery dialog within the iframe, what I try to achieve is to open the jQuery dialog at the middle of the parent document.
Any idea how can I achieve this ?
Aug 07, 2012 01:42 PM|LINK
you would need to create the dialog in the parent. content can not be displayed outside of its frame.
Aug 08, 2012 07:30 AM|LINK
Opening the dialog the dialog opens at the middle of the iframe, because it is doing its calcualtions based on the document not the top document. Here are the key codes:
pTop = doc.scrollTop(),
pTop += (wnd.height() - this.uiDialog.outerHeight()) / 2
It may be helpful.
Aug 08, 2012 05:17 PM|LINK
Jan 16, 2013 08:43 AM|LINK
I need to use this in Master File, Is it possible? It's not working on Master File.