activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knight, Doug" <>
Subject Collision between amq.js and jquery.query.js?
Date Thu, 24 Sep 2009 19:38:50 GMT
I am having a problem with a jquery plugin not being recognized when I include amq.js in the
sourced scripts. In the brief example below, if I comment out the amq script sections, everything
works fine (the line marked "ERROR occurs here" executes with expected results, pulling the
Tselect=8 from the URL). When I add in the calls to source amq.js and setup the amq.uri, I
get the following two errors:

invalid array length
Line 464
jQuery.query is undefined
Line 14

I've intentionally pared down the example to not require accessing the html file via the ActiveMQ/Jetty
app server, to show the collision from a simple file load. I began to post this issue to the
jquery list, but I recall seeing something about a release of amq.js that removes its dependency
on prototype.js. Is that available, and would that help? Anyone have an idea for how to fix


<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Test amq/jQuery.query plugin conflict</title>
<!-- -->
      <script type="text/javascript" src="amq/amq.js"></script>
      <script type="text/javascript">amq.uri='amq';</script>
<!-- -->
      <script type="text/javascript" src="lib/jquery.js"></script>
      <script type="text/javascript" src="lib/jquery.query.js"></script>
            var Tselect = jQuery.query.get('Tselect'); // ERROR occurs here
        Tinfo = "Tselect:" + Tselect + ":";
        jQuery("#TestArea").append("<pre>" + Tinfo + "\n</pre>");
      //amq.addListener('T.ID', 'topic://' + Tselect + '.OUT', _handler.recvMessage);

<div id="TestArea"></div>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message