don't know if anyone has encountered this before, but I'm using CF8 
components to return JSON to my applications, but even when i specify 
"dataType:'json'" on my ajax requests in JS, ColdFusion returns 
something along the lines of the following:
-----------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C/DTD/HTML 4.0 Transitional//EN">


 
{"userclassid":1.0,"unique_session_id":"19714_38786260"}

----------------------------------------------------------------------------------------

and jQuery's json parser can't parse it because of the doctype string on 
the response.  i've written a stupid utility function that finds the 
beginning of the string and parses the json using json2.js, but it's 
obviously an extra step that i'd like to get rid of.  has anyone else 
encountered this issue and solved it?

--adam

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305625
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to