So I recently came upon an interesting situation. I needed to validate a form entry against data on the server. For example, I wanted to query the db to make sure the quantity that the user typed in was a valid amount with the stock on hand.
My initial thought was that I could just extend the Validator class (so I get all of the validation triggers) and write a flash remoting server side call to validate the data. However, that doesn't seem possible because the doValidation() method, where I would make my Flash Remoting call, has to return an array of ResultEvents. Which means you can't wait for the result handler to determine if something is valid or invalid.
It seems like server side validation is a common enough thing. Has anyone else tried to do this? How did you get it to work?
thanks,
--nimer
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
| Software development tool | Software development | Software development services |
| Home design software | Software development company |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___

