easyXDM icon indicating copy to clipboard operation
easyXDM copied to clipboard

Using both Socket and RPC from 1 doc?

Open emirotin opened this issue 12 years ago • 2 comments

I have the following architecture:

parent page (3rd party domain) http://brand.com/page.html
    -> js file (my domain) http://me.info/script.js
        -> it loads an iframe (my domain) using the Socket http://me.info/iframe.html

The script and the iframe have to communicate for several reasons (resizing, doing some actions on the parent page based on the clicks inside of the iframe, etc) At the same time, the iframe needs to use (and was using) the Rpc for the API server communication (our service as well, but on a different domain http://me.apis.org/, having the cors/ineex.html and all that stuff)

The 2nd part Rpc is already tested and worked just fine (get, post, put) - everything was OK. But that time I was loading an iframe y manually adding it to the container

No, after the iframe was loaded using the Socket call the Rpc messages are not going to the server - instead they go to the parent page.

emirotin avatar May 18 '12 06:05 emirotin

+1

michikono avatar Aug 21 '14 08:08 michikono

+1

prostoandrei avatar Sep 22 '16 09:09 prostoandrei