Here is what I am trying to do: I have a functionality on a web page that can be opened in a new window(drag/drop elements into new locations), so there is a need to sync the data between two windows(mostly to trigger a refresh on a window whenever something was changed in another window)
So the question is is it possible to trigger a function of one window from a new window(preferably using jQuery) and vice versa?
UPDATE:
Both child and parent windows share the same JS file. So far I managed to call parent window function nameSpace.someFunction() just by calling it using window.opener.nameSpace.someFunction(). But how do I go the other way arround? How do I call the child window function from the parent window?
Since they are still having a parent window – child window relationship, you can access/share child window’s information from parent window and vice-versa.
Check here how to access child window’s function from the parent
run function from child window in parent window