gimecoffee
MIS
- Mar 3, 2006
- 25
My opener window has a multidimensional array that I want the child window to add to. I can watch the child add the array to the opener (with no error messages) but after the child is closed and I check the opener, only the object of the array I added is retained. The fields and values are gone.
For example:
In the parent is the array prt:
prt['A']['01']['descr']='John'
prt['A']['01']['city']='Miami'
prt['A']['02']['descr']='Ralph'
prt['B']['DR']['descr']='Sara'
prt['B']['DR']['city']='LA'
. . . .
From the child window I'm running
----------------------------------------------
opener.prt['A']['09'] = new Array();
opener.prt['A']['09']['descr']='Moe';
opener.prt['A']['09']['city']='Juneville';
opener.prt['A']['09']['color']='red';
----------------------------------------------
Before I close the child I can view the parent array from the debugger (within the child) and it shows all of these as being added. After the child window closes and I run the debugger on the opener window the only thing added to the prt array is prt['A']['09'] as an object with a length of 'error'. I've also tried "window.opener" instead of just "opener" with the same results.
Any help or suggestions would be greatly appreciated.
For example:
In the parent is the array prt:
prt['A']['01']['descr']='John'
prt['A']['01']['city']='Miami'
prt['A']['02']['descr']='Ralph'
prt['B']['DR']['descr']='Sara'
prt['B']['DR']['city']='LA'
. . . .
From the child window I'm running
----------------------------------------------
opener.prt['A']['09'] = new Array();
opener.prt['A']['09']['descr']='Moe';
opener.prt['A']['09']['city']='Juneville';
opener.prt['A']['09']['color']='red';
----------------------------------------------
Before I close the child I can view the parent array from the debugger (within the child) and it shows all of these as being added. After the child window closes and I run the debugger on the opener window the only thing added to the prt array is prt['A']['09'] as an object with a length of 'error'. I've also tried "window.opener" instead of just "opener" with the same results.
Any help or suggestions would be greatly appreciated.