문제

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