1
0
-1

I have an calculator which is hosted outside Maestro from another company, it is entirely client based, I need to send a whole bunch of data to the calculator, and retrieve the result, and set the result in Maestro form for further processing.

Does anyone have example on how to approach this issue? I am thinking about using IFrame, but would there be cross browser security problems?


    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0

      Hi Mike,

      You can explore HTML5 PostMessage or JQuery PostMessage API to communicate between parent (hosting page) and child (iframe). You can add trusted origin too.

      Some useful links

      http://blog.teamtreehouse.com/cross-domain-messaging-with-postmessage

      https://davidwalsh.name/window-postmessage

      http://benalman.com/projects/jquery-postmessage-plugin/


        CommentAdd your comment...