Problem in retaining the focus on screen

Hi,
I have the following set of steps:
1)My application has many tabs.
2)Each tab has a screen.
3)In a screen,if there is unsaved data and I click on other tab,I show a confirmation alert.
4)If user clicks ‘OK’ ,then the tab is changed.
5)If ‘CANCEL’ is clicked,I am using ‘selectTab’ property to go back to the screen with unsaved data.
6)The focus is succesfully brought to the screen.
7)Now, again I donot save and try to change the tab like in step 3.
8)The alert is shown and on click of ‘CANCEL’, the screen comes like a flash and focus is taken back to the changed tab.
9)This is happening after second alert onwards.
Please let me know how this can be solved.

Thanks,
Sravanthi

Hi Sravanthi
This report is difficult to respond to - there are just too many unknowns here.
The best thing to do would be to to boil this down to a simple reproducible case and post code, or send us a copy of the application along with steps to reproduce the problem, including details of which browser(s) you’re seeing it on, which version of SmartClient, and anything else we may need in order to reproduce the problem.
Thanks
Isomorphic Software