javascript - interact between two different graphs in two different browser windows in dc.js crossfilter -
I have created dc.js visualization with four different bar graphs, apart from opening a new graphic window in each article There is a button for For that purpose I have created a separate HTML file for each article. I want to interact between the graphs opened in two different windows. Is this possible? how?
Thank you!
window.opener will return a reference to the window object window It's opened.
In the first window, you can skip a global context (Let To use a property, the child's window (assuming that global Then, you can access it like this: var graphThing or window.graphThing ) need to manipulate whatever objection is Then, the window that is launched from the original window, you can call window.opener.graphThing to access the first window's graphing. var childGraphThing or window.childGraphThing ) opens it to parents, You can put a reference to the hair window by opening it like this:
var childWindow = window.open ('childGraph.html', 'blank_');
var childWindowGraphThing = childWindow.childGraphThing;
Comments
Post a Comment