I would recommend using jquery or prototype to handle updating the DOM rather than doing it directly, since they already handle the differences in browser API. I my test code this is what I use with jQuery, where the message body is appended to a div named results:
res = jQuery("#results"); amq.addListener("result-handler", "topic://flight.search.result", function(msg) { console.log("msg: " + msg.getAttribute('num')); res.append("<p>["+msg.getAttribute('num')+"] "); res.append(msg.childNodes[0].data+"</p>"); }, {selector: "identifier='123'"}); The message being sent on the bus looks like this: <result type='foo' num='3'>test message: 3</result> -Jeff On Wed, Jan 12, 2011 at 10:06 AM, stratio <stra...@hotmail.it> wrote: > > Ok, I followed your advice and I started from scratch with a minimal amq > client. It worked and I added code step by step. Now I have a quite fully > working client apart from this problem : > > When i get the messages of a topic i want to show them on the browser > window so I'm using this code : > > document.write("<br/>received : " + message.textContent + > "<br/><br/>"); > > Now, this code works on Firefox, Chrome and Opera and doesn't work on > Internet Explorer. > How can i show the received messages on Internet explorer? > > > Thanks in advance for the help :) > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Problem-with-Ajax-API-tp3155676p3213569.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >