Hi Simon,
Thanks for the attempt on this, but it still does not trigger the
HTTPService. Any other ideas?
-Ken
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Simon Barber
Sent: Sunday, January 08, 2006 1:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex 2.0 Form validation
Try this...
http://www.macromedia.com/2005/mxml";
xmlns="*">
http://localhost/xml/template/test.xml"; method="POST"
showBusyCursor="True">
{test1.text}
{test2.text}
What i have done here is when the change event is fired on the text1
TextInput the handleValid function is called. This checks to see if
the string is valid.
Let me know if this works,
Simon Barber
--- In flexcoders@yahoogroups.com, "Ken Bromberger" <[EMAIL PROTECTED]>
wrote:
>
> Hi! I am new to flex and I am working on using the validators flex
2.0
> includes.
>
>
>
> I have set up a form and can submit data to my test database using
> HTTPService and the request tags and return a result. When I add a
> string validator to my code the form no longer submits the
HTTPService
> request. If I remove the stringValidator from my code the form
works
> just fine. What am I missing on this?? Is there a good resource
with
> examples of how to implement validation?
>
> Thanks! - Ken
>
>
>
> Here is my code:
>
>
>
>
>
> http://www.macromedia.com/2005/mxml";
> xmlns="*">
>
>
>
>
>
>
>
>
>
>
>
> minLength="5" valid="handleValid(event)" invalid="handleValid
(event)"/>
>
>
>
>url="http://localhost/xml/template/test.xml"; method="POST"
> showBusyCursor="True">
>
>
>
> {test1.text}
>
> {test2.text}
>
>
>
>
>
>
>
>
>
>
>
> text="{test.result.root.tblTest.success}"/>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> click="submitForm();" enabled="false"/>
>
>
>
>
>
>
>
>
>
>
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/