I'm using rpc with XDM, and I can send simple data back and forth easily between child and parent window.

But it seems to be limited to simple strings and numbers. The demos on the site only use numbers. When I try to send a json ecoded string, I get a cross domain error. When I use cors, I can make ajax requests fine, but I can't display the child page in the iframe, because the data is returned and not rendered.

My question is, how can I render an iframe, and pass complex data back and forth. Or maybe I am doing something wrong?

有帮助吗?

解决方案

Figured it out... I wasn't stringifying correctly. Good to know it works!

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top