Two tabs and a common menu bar

Hi,My application has two tabs with base map on each. It also has a menu bar with a number of items. I would like these items to perform specific actions depending on which tab is in focus. I would like to focus on overview map to begin with. Right now the overview map responds to action on the first tab only. If the second tab is clicked and the basemap is zoomed in or out, the overview map does not respond to this action. Here is the relevant code:

Hi,This question has been viewed by many but no solutions so far. I understand it might be time-intensive to provide full solution or coding for this problem, but can somesuggest an approach to solve this problem? ThanksSamir

You could try posting this on www.stackoverflow.com as it may be more of a general internet question, rather than specific to the ArcGIS Server JS API.

Another approach is to simplify the problem by trying to get your buttons, menus and toolbars to interact with 2 divs on a page (eg, have two divs with a span each. Depending on which tab is in focus, update that span when you press a button).

Once that's working, you'll have a pattern which works for two maps on a map, and you can hook it up to the ArcGIS-specific functions.