map running on two seperate div's

Discussion created by pramodharithsa on Aug 29, 2012
Latest reply on Sep 4, 2012 by pramodharithsa
I have a situation wherein i show map in a Div and i have a maximize button.
On click of maximize i have to show a  different set of div's which contain gis functionalities like legend and navigation tool bar.
and i have different set of functionalities for this map. and on click of close button the control has to be transferred to the original div containing map.

I have attached an image to change this concept.

Now i have different scripts for both and different pages as well.
Both running as i want. now the thing is integrating them.
when i click on maximize i will have to call its init function since dojo.ready() doesn't fires.
and on closing this div the original div doesn't responds.

How do i do this?
Any suggestions?