Tab means it is not Tab in Key board...I am talking about Tabbing in a screen......I need to save if any unsaved data is left before moving to other tab in a screen....In the save process if he gets any error message or Alert i should allow him to move to next tab.....
________________________________ From: Tim Hoff <[email protected]> To: [email protected] Sent: Thursday, December 18, 2008 6:29:49 PM Subject: [flexcoders] Re: How can i make possible to keep user back in the same TAB.. Honestly, now I'm a little confused. The example below is for a TextInput control. Are you talking about a keyboard tab? If so, you can use setFocus(). myTextInput. tabEnabled = false, for the other controls, may work too. If that's what you're asking. :) -TH --- In flexcod...@yahoogro ups.com, "Tim Hoff" <timh...@... > wrote: > > > You could just disable the other tabs; until the user has saved the > data. > > -TH > > --- In flexcod...@yahoogro ups.com, "b.kotireddy" koti_reddy972@ > wrote: > > > > 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="focusoutHandl er(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:CpirModul e> > > > > > > > > Thanks in advance > > koti > > >

