troubleshooting Question

Javascript Clone Array Internet Explorer

Avatar of x2cmsac
x2cmsac asked on
7 Comments2 Solutions472 ViewsLast Modified:
I have a strange error in Internet Explorer when trying to clone / copy and array from a window to another window.

Window A
 has an array called arr1
 opens Window B using javascript

Window B
 has an array called arr2
 changes the value of arr1 to arr2 using window.opener.arr1 = arr2;

Works fine until you close window B and then Window A arr1 gives an javascript error 'the callee server not server application is not available and disappeared' when you try and access arr1

I understand that arr1 might be a pointer to arr2 so when i close Window B it loses this reference, but this is only the case in Internet Explorer.

I have tried many methods to try and copy / clone the array but they all have the same issue when i close window B.

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros