[ 5 posts ]

Maximos

  • Username: xuhuireg
  • Joined: Thu Jan 12, 2012 10:52 pm
  • Posts: 5
  • Offline
  • Profile
Tags:

cross iframe component

Post Posted: Thu Jan 12, 2012 10:58 pm
+0-
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?

Maximos

  • Username: xuhuireg
  • Joined: Thu Jan 12, 2012 10:52 pm
  • Posts: 5
  • Offline
  • Profile

Re: cross iframe component

Post Posted: Thu Jan 12, 2012 11:07 pm
+0-
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

Maximos

  • Username: xuhuireg
  • Joined: Thu Jan 12, 2012 10:52 pm
  • Posts: 5
  • Offline
  • Profile

Re: cross iframe component

Post Posted: Thu Jan 12, 2012 11:19 pm
+0-
If there isn't any existing component for this functionality, are there any suggestions for this usage.

Bret Levy

  • Username: BretLevy
  • Joined: Tue Jan 05, 2010 9:56 am
  • Posts: 34
  • Location: Atlanta, GA
  • Offline
  • Profile

Re: cross iframe component

Post Posted: Wed Jan 18, 2012 6:14 am
+0-
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

Maximos

  • Username: xuhuireg
  • Joined: Thu Jan 12, 2012 10:52 pm
  • Posts: 5
  • Offline
  • Profile

Re: cross iframe component

Post Posted: Tue Jan 31, 2012 6:00 pm
+0-
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.
  [ 5 posts ]
Display posts from previous:  Sort by  
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