Hi,
I'm actually coding a case where a child popup window transfer data to parent window as:
var childArrayData = new Array();
childArrayData[0] = 'Data text1';
childArrayData[1] = 'Data text2';
childArrayData[2] = 'Data text3';
window.opener.parentVariable = childArrayData;
I got an error which was solved like:
var childArrayData = new window.opener.Array(); <-----
childArrayData[0] = 'Data text1';
childArrayData[1] = 'Data text2';
childArrayData[2] = 'Data text3';
window.opener.parentVariable = childArrayData;
Why is Array class different between two different windows? Does it relate to namespacing? May you refer to any article about the answer?
Thanks in advance.
Best,
Esteve