Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing Message from Parent Window to Child Window #99

Open
dynamasoft opened this issue Mar 25, 2015 · 0 comments
Open

Passing Message from Parent Window to Child Window #99

dynamasoft opened this issue Mar 25, 2015 · 0 comments

Comments

@dynamasoft
Copy link

Hello There - First of all great work on creating this library.

Since I am fairly new in using this library, I am having an issue with passing message from parent window to child window in ie8 using postmessage.htm.

The issues are below:

  1. In the Jquery.PostMessage.js, the serializewnidowreference function is somehow throws an exception because it can't build a relationship between parent (opener) to the child window. On the other hand child to parent works okay since it check on window.parent.
  2. I saw an optional parameter to pass the targetWindowName by the name. I did this, but then I encountered another error in the postmessage.htm

ript type="text/javascript">
(function () {

    var win, data = document.location.hash.split("&");
    if (data.length < 4) throw new Error("Invalid hash for postmessage");
    // Refernece is a name (string)
    if (data[1].substr(0, 1) === ':') {
        win = window.open("", winRef[1].substr(1));
    }

This condition yields true if (data[1].substr(0, 1) === ':') {
however winRef was not defined.

I appreciate your help in advance!

Smitty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant