activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From habumaster <>
Subject Re: Question about ajax.html examples on website
Date Tue, 25 Jan 2011 00:20:57 GMT

Using the amq-msg-type for Stomp->ActiveMQ messages from Ruby and
ActiveMQ<->Ajax to the Browser with amq.js and prototype,js  

Had no problems when I did not use the header and we connected the Browser
via Orbited.

Ruby code:

javascript = render_to_string :update do |page|

                  page.insert_html :bottom,
"chat_message_list_#{params[:id]}", chat_message.to_html 

                  page << "$('chat_window_#{params[:id]}_body').scrollTop =


Orbited.send_data("CHANNEL_#{chat_message.window.workbench_id}", javascript)

Now we get 3 messages back from ActiveMQ for this single message. All this
JS has to be in one block to be run in the browser. Looking to change this
behavior back, or find a way to link these back together. 
Looking thru the messages now.........

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message