Return-Path: Delivered-To: apmail-geronimo-activemq-dev-archive@www.apache.org Received: (qmail 88660 invoked from network); 24 Aug 2006 10:31:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Aug 2006 10:31:32 -0000 Received: (qmail 84043 invoked by uid 500); 24 Aug 2006 10:31:32 -0000 Delivered-To: apmail-geronimo-activemq-dev-archive@geronimo.apache.org Received: (qmail 84018 invoked by uid 500); 24 Aug 2006 10:31:32 -0000 Mailing-List: contact activemq-dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-dev@geronimo.apache.org Received: (qmail 84009 invoked by uid 99); 24 Aug 2006 10:31:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Aug 2006 03:31:32 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Aug 2006 03:31:31 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 581957142F5 for ; Thu, 24 Aug 2006 10:28:23 +0000 (GMT) Message-ID: <15068031.1156415303357.JavaMail.jira@brutus> Date: Thu, 24 Aug 2006 03:28:23 -0700 (PDT) From: "Greg Wilkins (JIRA)" To: activemq-dev@geronimo.apache.org Subject: [jira] Commented: (AMQ-884) Ajax should support non-XML messages In-Reply-To: <5100274.1155918623131.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ 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