That works great. Thanks for the example! parent.c3_callFunction("myFunction")
The problem I have now though is that my iframe isnt allowed to communicate with C3 during preview because of COrs policy.eg:
C3_InterfaceTest.js:213 Uncaught DOMException: Blocked a frame with origin "http://localhost:8668" from accessing a cross-origin frame.
In your example the html was part of the iframe inside C3 itself (so everything works fine) but in my case it uses an external.html file to embed.
Although my iframe will eventually be on the same server and directory when online I have no idea how to make this work locally when testing in C3. I got a chrome extension which was supposed to block COrs but that doesnt seem to have any effect.
Any ideas how I can test locally without having to do an upload to my website each time I need to test something?
Cheers