Ajax should support non-XML messages
------------------------------------
Key: AMQ-884
URL: https://issues.apache.org/activemq/browse/AMQ-884
Project: ActiveMQ
Issue Type: Bug
Affects Versions: 4.0.1
Reporter: Danilo Tuler
_amq.js should not make an assumption that the received message is in XML
format.
I'm using a plain text message and it was not being handled to my handler.
The user handler must be aware of the type of object it receives.
Patch below.
Index: _amq.js
===================================================================
--- _amq.js (revision 419888)
+++ _amq.js (working copy)
@@ -46,11 +46,7 @@
{
for (var j = 0; j < responseElement.childNodes.length; j++)
{
- var child = responseElement.childNodes[j]
- if (child.nodeType == 1)
- {
- handler(child);
- }
+ handler(responseElement.childNodes[j]);
}
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira