7 Replies Latest reply on Apr 16, 2015 1:15 PM by Joe_Masinter

    postMessage not working in IE

    midavis9

      I am trying to post messages from my pdf document to the web browser.  I have the following code snippet below.  I am receiving the alert from the pdf file in all browsers.  I am not getting the postMessage back in IE but I am in Chrome.

       

      function onMessageFunc(messageArray)

          {

              app.alert('incoming message: ' + messageArray[0]);

              try

              {

                  this.hostContainer.postMessage(["echo: " + messageArray[0]]);

              }

              catch (e) {

                  app.alert(e.message);

              }

         }