You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "james strachan (JIRA)" <ji...@apache.org> on 2006/08/24 11:06:23 UTC
[jira] Assigned: (AMQ-884) Ajax should support non-XML messages
[ https://issues.apache.org/activemq/browse/AMQ-884?page=all ]
james strachan reassigned AMQ-884:
----------------------------------
Assignee: Greg Wilkins
> 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
> Assigned To: Greg Wilkins
> Attachments: _amq.js.patch
>
>
> _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