Continuing the discussion from How to call hype js function from external HTML:
The following is the function in my external js file:
"See" is the name of my hype document and "highchartsPlot" is the name of the function in my hype document.
My hype document is embedded on a WordPress page. A js file is loaded upon document load. This js file contains an ajax function which is intended to save data to the WordPress mysql database. The hype document functions swimmingly. As the user moves through the scene, data is collected and once completed, the ajax function is invoked, the data is saved to the database and the ajax response returns that data as intended. This works great!
The objective is to push that data back to the hype document so that it can be graphed using the highcharts charting library. I have tested this initially in Hype with static test data which works flawlessly.
Should this code not work?
The error returned is:
Uncaught ReferenceError: hypeDocument is not defined
Any direction would be much appreciated...