Results 1 to 3 of 3

Thread: How to display pop-up window/alert initiated by iframe

  1. #1
    Join Date
    Jan 2007
    Posts
    23
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default How to display pop-up window/alert initiated by iframe

    Hello,

    I have an 1x1 px iframe on my website. If user is logged in, but doesn't show any activity, the content of the iframe refreshes every 10 minutes. One of the purposes of this iframe is to check for new messages and inform user with sound/message if there are new messages.

    The problem is that user can not see any message because it's being displayed in the iframe and not in the parent window.

    I need any solution how to display in parent window a message/pop-up/alert etc initiated by iframe.

    Thanks.

  2. #2
    Join Date
    Jan 2007
    Posts
    23
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Found solution. I have to use:

    window.parent.window.alert

    instead of:

    window.alert

  3. #3
    Join Date
    Jan 2007
    Posts
    23
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Unfortunately, there is a problem with window.alert. If user is not at computer and cannot click "OK", the iframe cannot refresh anymore.

    So, I am still looking for a script which can show a pop-up or dhtml window initiated by iframe over the parent window.

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
  •