SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2006
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    opener.document fails to pass popup-data back to main

    I have used this syntax in multiple places to dynamically generate selection-box contents from AJAX feedback.

    Code:
    myList.options[myList.options.length] = new Option("Test",123);
    It works in every case except when I define "myList" using an ID from the "opener"... as in:

    Code:
    var myList = opener.document.getElementById("testID");
    I have even gone as far as to try the old MS IE compatibility way:

    Code:
    var myList = opener.document.all["testID"];

  2. #2
    SitePoint Enthusiast
    Join Date
    Jun 2006
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Something I just found on MSDN has me quite peeved...

    http://msdn2.microsoft.com/en-us/library/ms534309.aspx
    The opener property is available only for frame and iframe pages.
    What is the point of having pop-ups then?


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
  •