-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embedding codap in an iframe #303
Comments
Yes. Actually, a few ways. The easiest is to place CODAP in an IFrame. The main page can communicate with CODAP using the CODAP Plugin API. The Plugin API is documented here: https://github.com/concord-consortium/codap/wiki/CODAP-Data-Interactive-Plugin-API. Using this API one can perform all the operations that one would from a plugin embedded in CODAP: create datasets, add cases, create and position components, and so on. The API is Post Message-based and the usual security restrictions apply. Some notes on setting up this type of connection:
|
Thanks, @jsandoe. I have been having some trouble establishing the communication channel with CODAP. I have been loading CODAP in an iframe and then creating the connection as shown below: var codapPhone = new iframePhone.IframePhoneRpcEndpoint(
function(command, callback) {
onCODAPMessage(command, callback);
},
'data-interactive',
frame
); where I was expecting to see a Do you have any ideas about what I might be missing? |
Is there an established way to embed codap in another app and interact with it programmatically?
The text was updated successfully, but these errors were encountered: