I
isspwk
I have a 2 domains that calls to each other via javascript window.open
method.
Each domain has a name given to its window. Domain A with Name A and
Domain B with Name B.
Domain A has 3 frames each with a name (header, content and footer
respectively)
Domain A will call Domain B via a pop up window (javascript) with Name
B and if the browser already has that window open, it will reload
(reuse) that window.
However, the design of Domain B is such that when Domain B calls
Domain A via a pop window, it uses the Name of a frame in Domain A
instead of the Domain A Name itself.
In IE6, i managed to have each domain calling the other correctly. The
number of windows created by each Domain is limited. That is the
behavior that we are trying to achieve.
However in IE7, when Domain B calls Domain A, it always open another
window instead of using the existing window in Domain A. Domain A
still calls Domain B correctly.
Are there any reasons for this behavior?
Is this a classic example of the cross domain scripting issue?
Currently, my solution would be to place domain B in Domain A frame,
so that Domain B is able to call Domain A via Domain A Frame. Hence
the windows are being reloaded (reused)
It is an appropriate solution?
Thanks in advance.
method.
Each domain has a name given to its window. Domain A with Name A and
Domain B with Name B.
Domain A has 3 frames each with a name (header, content and footer
respectively)
Domain A will call Domain B via a pop up window (javascript) with Name
B and if the browser already has that window open, it will reload
(reuse) that window.
However, the design of Domain B is such that when Domain B calls
Domain A via a pop window, it uses the Name of a frame in Domain A
instead of the Domain A Name itself.
In IE6, i managed to have each domain calling the other correctly. The
number of windows created by each Domain is limited. That is the
behavior that we are trying to achieve.
However in IE7, when Domain B calls Domain A, it always open another
window instead of using the existing window in Domain A. Domain A
still calls Domain B correctly.
Are there any reasons for this behavior?
Is this a classic example of the cross domain scripting issue?
Currently, my solution would be to place domain B in Domain A frame,
so that Domain B is able to call Domain A via Domain A Frame. Hence
the windows are being reloaded (reused)
It is an appropriate solution?
Thanks in advance.