LyndonOHRC
Programmer
Hi,
I'm trying to follow faq1600-6409 and my server side is ColdFusion 5.0.
I'm working on building the responseText string and suspect that is my problem. The error hits when I try to eval() the responseText.
Here is the loop where I try to build the data:
The getLicensee.Name field contains a comma, that may be the cause but I'm not sure what to do about that.
I'm very excited about using AJAX/JSON if I can just get over this learning curve...
Thanks very much in advance.
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
I'm trying to follow faq1600-6409 and my server side is ColdFusion 5.0.
I'm working on building the responseText string and suspect that is my problem. The error hits when I try to eval() the responseText.
Here is the loop where I try to build the data:
Code:
<cfset dupeCheck='>
<cfset JSONData='(['>
<cfoutput query="getLicensee">
<cfif Trim(getLicensee.NAME) neq dupeCheck>
<cfset JSONData=JSONData+'{"LicenseeName":"#getLicensee.Name#","SSN":
"#getLicensee.SSN#","LicenseYear":"#getLicensee.Year#"}'>
</cfif>
<cfset dupeCheck=Trim(getLicensee.NAME)>
</cfoutput>
<cfset JSONData=JSONData+'])'>
I'm very excited about using AJAX/JSON if I can just get over this learning curve...
Thanks very much in advance.
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey