John Blayter
Member since Dec 11, 2008
- Profile: /members/2450-john-blayter.htm
- URL: http://www.blayter.com/john/
- Comments: 3
Recent Blog Comments By John Blayter
-
Finding The Distance Between Latitude / Longitude Locations In ColdFusion
Posted on Feb 9, 2009 at 11:15 AM
I use a user defined function in SQL Server to calculate the distance. CREATE FUNCTION [dbo].[getDistanceBetweenLatLon] ( @lat1 decimal(5,2), @long1 decimal(5,2), @lat2 decimal(5,2), @long2 decimal(5,2) ) RETURNS NUMERIC( 10, 5 ) AS BEGIN DECLARE @x decimal(20,10) DECLARE @pi decima... read more »
-
OOPhoto - More Thoughts On Data Validation In Object Oriented ColdFusion Programming
Posted on Aug 13, 2008 at 5:35 PM
@Ben For my forms I use cf_terraform for the client and server side validation. product: http://www.eswsoftware.com/products/terraform/index.cfm documentation: http://www.eswsoftware.com/products/terraform/docs/formats_and_datatypes/ It has a feature of a customValidationPath in the cf_terraFo... read more »
-
OOPhoto - More Thoughts On Data Validation In Object Oriented ColdFusion Programming
Posted on Aug 12, 2008 at 4:41 PM
One thing that I have been experimenting with is a MetaValidation service that I call before I start setting values into the bean and then providing contextual error back to the user. Here is an example of my service... http://blayter.com/downloads/MetaValidationService.cfc.txt The nice part abo... read more »