> -----Original Message-----
> From: Marlon Moyer [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 06, 2005 10:47 AM
> To: CF-Talk
> Subject: Re: JSON
> 
> I ended up changing the JSONEncode function from CFLIB to create this
> form:
> 
> "errors":{}
> 
> still, js doesn't really like this much either, but it will still
> parse it.  I won't give you a length property as in
> alert(rtn.errors.length); so I ended up just sending a total error
> count property also.

You'll only get a "length" property for arrays.  You're not making an array,
you're making an object.  Try this:

"errors":[]

That will make an empty array named "errors" and errors.length will be zero.

Jim Davis




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226233
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to