Forum Moderators: open
I am not really sure about passing arrays using JS, I don't know of a way off the top of my head.
It would really depend on how much information we are talking about. If there are only a few values in the array they could be broken up and appended to the url or possibly saved in a cookie.
In your popup window, you can access the parent window just like Purple Martin said, so if you want to set some array of values in the parent window you can do so like this:
in the popup window:
var importantValues = new Array(); <- this is your array you want passed to the parent.
var myParent = window.opener;
myParent.setArrayValues(importantValues); <- function call to the parent
in the parent window:
var myArray = new Array(); <- array you want to set
function setArrayValues(newArrayValues)
{
myArray = newArrayValues;
}
Hope this helps.