Re: [flexcoders] checkbox and text input
private function ValidateIP():Boolean { // Validate IP Address var pattern:RegExp = /\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/; if ( pattern.exec(String(ti_ipAddress.text)) == null ) { Alert.show("Please Enter a Valid IP Address"); return false; } else return true; } This function would tell whether the IP is valid or invalid, Now on the Combobox, u can write a function on Change event and looks it would run -- Regards, Paresh M. More Software Engineer Nashik/Pune, Maharashtra, India. Email - pareshm...@gmail.com On Fri, Mar 20, 2009 at 7:01 AM, Dieyana Abu Bakar wrote: > oh...can it been done?i have post this questions everywhere and none of > them is answered.i'm stuck with both of this.but i think the checkbox part i > can try to do it.but for the input part(when user input a text,it will > search for that particular text) ,i don't know.could you show me? > > -- > *From:* Tracy Spratt > *To:* flexcoders@yahoogroups.com > *Sent:* Tuesday, March 17, 2009 9:21:28 PM > *Subject:* RE: [flexcoders] checkbox and text input > > That task has several parts. Which have you done successfully and which > do you need help with? > > > > Tracy Spratt, > > Lariat Services, development services available > -- > > *From:* flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] > *On Behalf Of *diana_usim > *Sent:* Tuesday, March 17, 2009 4:34 AM > *To:* flexcod...@yahoogro ups.com > *Subject:* [flexcoders] checkbox and text input > > > > hye > > i've got a problem to build my checkbox.i have a checkbox with label "IP > address" and a text input beside it. > > i want to be able to input any IP address and when i click the checkbox > button it will filter the datagrid according to IP address input > earlier.it like a combination of 'search' and checkbox.but i don't know > how to do this. > > can you show me how to work on this one??i'm ready to learn form the > expert!! > > > >
RE: [flexcoders] checkbox and text input
Certainly this can be done. It is not difficult, it just has several parts. Make sure each step works before going on to the next. * Get your data * Put it in an ArrayCollection * Populate the dataGrid with that Array collection * Create a filter, using a hard coded IP address * Create the checkbox * In the click event handler of the CheckBox, Apply the filter if it is "selected". Remove the filter if it is not. * Add the IP textInput control * Change the filter to use the value in the TextInput That is it. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Dieyana Abu Bakar Sent: Thursday, March 19, 2009 9:32 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] checkbox and text input oh...can it been done?i have post this questions everywhere and none of them is answered.i'm stuck with both of this.but i think the checkbox part i can try to do it.but for the input part(when user input a text,it will search for that particular text) ,i don't know.could you show me? _ From: Tracy Spratt To: flexcoders@yahoogroups.com Sent: Tuesday, March 17, 2009 9:21:28 PM Subject: RE: [flexcoders] checkbox and text input That task has several parts. Which have you done successfully and which do you need help with? Tracy Spratt, Lariat Services, development services available _ From: flexcod...@yahoogro ups.com <http://ups.com/> [mailto: flexcod...@yahoogro ups.com ] On Behalf Of diana_usim Sent: Tuesday, March 17, 2009 4:34 AM To: flexcod...@yahoogro ups.com Subject: [flexcoders] checkbox and text input hye i've got a problem to build my checkbox.i have a checkbox with label "IP address" and a text input beside it. i want to be able to input any IP address and when i click the checkbox button it will filter the datagrid according to IP address input earlier.it <http://earlier.it/> like a combination of 'search' and checkbox.but i don't know how to do this. can you show me how to work on this one??i'm ready to learn form the expert!!
Re: [flexcoders] checkbox and text input
oh...can it been done?i have post this questions everywhere and none of them is answered.i'm stuck with both of this.but i think the checkbox part i can try to do it.but for the input part(when user input a text,it will search for that particular text) ,i don't know.could you show me? From: Tracy Spratt To: flexcoders@yahoogroups.com Sent: Tuesday, March 17, 2009 9:21:28 PM Subject: RE: [flexcoders] checkbox and text input That task has several parts. Which have you done successfully and which do you need help with? Tracy Spratt, Lariat Services, development services available From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On Behalf Of diana_usim Sent: Tuesday, March 17, 2009 4:34 AM To: flexcod...@yahoogro ups.com Subject: [flexcoders] checkbox and text input hye i've got a problem to build my checkbox.i have a checkbox with label "IP address" and a text input beside it. i want to be able to input any IP address and when i click the checkbox button it will filter the datagrid according to IP address input earlier.it like a combination of 'search' and checkbox.but i don't know how to do this. can you show me how to work on this one??i'm ready to learn form the expert!!
RE: [flexcoders] checkbox and text input
That task has several parts. Which have you done successfully and which do you need help with? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of diana_usim Sent: Tuesday, March 17, 2009 4:34 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] checkbox and text input hye i've got a problem to build my checkbox.i have a checkbox with label "IP address" and a text input beside it. i want to be able to input any IP address and when i click the checkbox button it will filter the datagrid according to IP address input earlier.it like a combination of 'search' and checkbox.but i don't know how to do this. can you show me how to work on this one??i'm ready to learn form the expert!!