dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: trying to call parent window from child window (window.opener)?

  1. #1
    Join Date
    Feb 2014
    Posts
    2

    trying to call parent window from child window (window.opener)?

    I'm trying to get a child window to call a function on a parent window:

    https://www.dropbox.com/s/gle9sou3gj...wOpenerPOC.zip

    LaunchPage.html is used to open ResolveCaseDialog.html. The Submit button on ResolveCaseDialog submits the selected "Resolution Type" value to window.opener.ProcessReturnValue().

    However, when I click the Submit button, the ResolveCaseDialog js throws the following exception: "Uncaught SecurityError: Blocked a frame with origin "null" from accessing a frame with origin "null". Protocols, domains, and ports must match."

    Can you please take a look at this setup and let me know if there's a trick to making this work that I'm missing?

  2. #2
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    6,136
    I wrote these scripts years ago for this very purpose, go to this link for frame examples and click this link for window examples and see if they help you understand how the communication between frames and windows can be achieved using javascript.
    Cheers

    Khalid

    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

  3. #3
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    2,500
    I read that in HTML5, framesets are now removed.

    Also to the Original Poster, can you post your code and wrap it in the appropriate forum code tags.
    Yes, I know I'm about as subtle as being hit by a bus..(\\.\ Aug08)
    Yep... I say it like I see it, even if it is like a baseball bat in the nutz... (\\.\ Aug08)
    I want to leave this world the same way I came into it, Screaming, Incontinent & No memory!
    I laughed that hard I burst my colostomy bag... (\\.\ May03)
    Life for some is like a car accident... Mine is like a motorway pile up...

    Problems with Vista? :: Getting Cryptic wid it. :: The 'C' word! :: Whois?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles