[jQuery] jquery ajax call parsererror
I am getting a parsererror in my ajax call; I am always getting into the
error function - I dont know why
My webservice is a coldfusion CFC, and does return XML - HOWEVER, there are
carriage return/linefeeds in it and standard footer html - dont know if this
matters(see below). I only want to parse the <RESPONSE> node
Here is my call:
function updateRules()
{
jQuery.ajax({
type: "post",
url:
"http://sacdsm02311.homeq.local/Aurora_MX/WebServices/EliminationRules.cfc",
data: "method=getEliminationRules",
dataType: "xml",
success: function(txt)
{
var t = jQuery("field", j);
jQuery('#prodiv').html(txt);
},
error: function(XMLHttpRequest, textStatus, errorThrown)
{
jQuery('#prodiv').html(textStatus);
}
});
Here is the XML packet being returned from the webservice
<?xml version="1.0" encoding="UTF-8"?>
<RESPONSE>
<XML_RESPONSE>1</XML_RESPONSE>
<ORDER_STATUS>1</ORDER_STATUS>
<REASON_CODE>SUCCESS</REASON_CODE>
<PAYLOAD><wddxPacket version="1.0"><header/><data><recordset
fieldNames="RULE,RULETYPE_CD,DESCRIPTION" rowCount="3"
type="coldfusion.sql.QueryTable"><field
name="RULE"><string>a</string><string>b</string><string>c</string></field><field
name="RULETYPE_CD"><number>1.0</number><number>1.0</number><number>1.0</number></field><field
name="DESCRIPTION"><string>rule1</string><string>rule1</string><string>rule1</string></field></recordset></data></wddxPacket></PAYLOAD>
</RESPONSE>
<hr>
<div class="normal"> Connection Status:
Session.WebClient is not defined.
JRun Server Instance: sacdsm02311-cfmx-1
Server Name: SACDSM02311
</div>
--
View this message in context: http://www.nabble.com/jquery-ajax-call-parsererror-tp15550839s27240p15550839.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.