| Page 1 of 1 | [ 5 posts ] |
|
Considering this scenario, there is a home page calling PageA, we added an iframe in PageA, load PageB to the iframe. In PageB, we created an overlay, in normal pages, overlay will be appended in PageB document body. but since it is in iframe, if the overlay is too wide, there will be scroll bar in iframe.
Then we might want to move the overlay display in window cross the iframe, but in most situation, overlay in PageB can only displayed within the iframe. does there any component we can use to place a div cross iframe? |
|
one thing I have to say is PageA and PageB are in same domain.
Using IFrame is a potential solution for the layout to separate UI design in PageA and PageB |
|
If there isn't any existing component for this functionality, are there any suggestions for this usage.
|
|
If pageA and B come from the same domain, then B can write to A. Specifically, it can create the div container in A's DOM and put the popup panel there. There is no way to make a popup from within the iframe go "outside" the frame, by design. Use top.xxx in PageB to access PageA's code or DOM.
Hope that helps... ~~bret |
|
Thanks for your reply.
In our scenario page B contains too many JS referred to document body, so we can not simply move DIV to top page, it will break JS in page B. |
| Page 1 of 1 | [ 5 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group