activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Wilkins (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AMQ-884) Ajax should support non-XML messages
Date Thu, 24 Aug 2006 10:28:23 GMT
    [ https://issues.apache.org/activemq/browse/AMQ-884?page=comments#action_36837 ] 
            
Greg Wilkins commented on AMQ-884:
----------------------------------

This is a good idea.  I will apply patch, test and commit soon

> 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

        

Mime
View raw message