Whoops - here's a better link:
http://live.brizmun.org:8888/#!sandbox.docs.29.11
Did some more digging to try understand what it's doing. For some reason, gadgets.rpc._getTargetWin() is returning an iframe rather than a window object. Everything else (message, target origin) seems to match.
/* h = "wgadget_iframe_0" */
/* returns an iframe object, where .postMessage is useless */
i = gadgets.rpc._getTargetWin(h);
i.postMessage('{"not","a","real"}', 'http://message.net''); // postMessage is not a valid function
/* returns a window object, where .postMessage is valid */
i = window.frames[h];
i.postMessage('{"not","a","real"}', 'http://message.net''); // postMessage is a valid function
Hi all,
I'm hoping that you can see something blatantly obvious that I've done wrong or missed.
Had Gadgets working in kune_0.2.0+b34_all.deb, after compiling and packaging kune_0.3.0+b23_all.deb from trunk, they all fail.
Did a clean install and clean database, nothing changed.
Google chrome's console shows that it's not able to talk to the cross-domain frame of the widget:
JS Error - Uncaught TypeError: Object #<HTMLIFrameElement> has no method 'postMessage' [wave-rpc.js:601]
Firefox does the same thing:
Error: TypeError: i.postMessage is not a function Source File: http://live.brizmun.org:8888/others/splash/js/wave-rpc.js Line: 601
I'm not sure what else to check - comparing against what's served by kune.cc, I can't spot the difference.
Any ideas?
Example Blip: http://live.brizmun.org:8888/waveref/live.brizmun.org/w+7vxlbcpl0tsbA/~/conv+root/b+iQna4Ue1HAA
Account/Pass: testuser / testuser
Server: Ubuntu 12.04 LTS [AWS]
Address: http://live.brizmun.org/ (jetty on :8888, varnish cache on :80)
Chris B