Results 1 to 2 of 2

Thread: How to open div popup on parent iframe???

  1. #1
    Join Date
    Jul 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to open div popup on parent iframe???

    Hi,
    I have created one tool. In which I want to show result in DIV popup. I have use “fancybox” to show it.
    It’s working fine: http://dev.ir2.flife.de/data/test/hpl.php
    Select HTML in Select format drop down and then click on “Show Data”.

    But if I have to put this tools as iframe in some page like: http://dev.ir2.flife.de/data/test/test.html
    So here when I click on “Show Data”. It will show inside iframe only.
    Is there any way to show it outside of iframe and in main page?

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Due to security restrictions in browsers, it is not really possible to do anything outside of the iframe.
    One option is not using iframes-- maybe you could use ajax instead. Then it might work.

    You could also try to communicate between the two windows, maybe with a cookie, or using "parent", but I don't know how well this would work.

    The simple answer is: if you open a window within the firame it will always be within the iframe. If you open it on the main page, it can go anywhere.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •