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 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.

To use a property, the child's window (assuming that global 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_');  

Then, you can access it like this:

  var childWindowGraphThing = childWindow.childGraphThing;  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -