Tag Archives: validate()

Passing parameters to an HTTPService

The followig example shows how you can pass parameters to an HTTPService by passing an Object in the HTTPService’s send() method. The remote ColdFusion script is a simple “hello world” type script which accepts a single parameter, “name”, and returns a single parameter, “welcomeMessage”.

Full code after the jump.

Continue reading Passing parameters to an HTTPService

Using the CurrencyValidator and CurrencyFormatter classes to validate and format numbers

The following entry shows how users can store an unformatted number and display it back to users when the TextInput control is being edited. When the text input control loses focus, the data is validated and formatted (if the data was valid) or focus is returned to the control if validation failed.

Full code after the jump.

Continue reading Using the CurrencyValidator and CurrencyFormatter classes to validate and format numbers