Hi, The below code is my one of the TAB from 4 tabs. Before leaving this tab i need to evaluate the page, if user forgot to save his filled data i need to save that data. My Question is their any way can i keep the focus on the same TAB if he gets some error message or some Alert in the this TAB.
<cpirMod:CpirModule xmlns:cpirMod="org.cpir.component.*" xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="100%" height="100%" creationComplete="initData(event)" preinitialize="wireEvents(event)" hide="focusoutHandler(event)"> <mx:Script> <![CDATA[ private function focusoutHandler(event:Event):void { Alert.show("Going Out of this tab from cities"); } ]]> </mx:Script> <mx:Canvas width="100%" height="100%" id="cityCanvas" > <mx:HBox width="100%" height="12%"> <mx:TextInput id="search" change="searchData()" /> </mx:HBox> </Canvas> </cpirMod:CpirModule> Thanks in advance koti