activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Knight (JIRA)" <j...@apache.org>
Subject [jira] Created: (AMQ-2427) Collision between amq.js and jquery.query.js
Date Mon, 28 Sep 2009 12:53:52 GMT
Collision between amq.js and jquery.query.js
--------------------------------------------

                 Key: AMQ-2427
                 URL: https://issues.apache.org/activemq/browse/AMQ-2427
             Project: ActiveMQ
          Issue Type: Bug
    Affects Versions: 5.2.0
         Environment: Windows XP SP3, with jQuery 1.3.2, jquery.query.js plugin 2.1.6
            Reporter: Doug Knight


List,
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
file:///C:/apache-activemq-5.2.0/webapps/Client/amq/prototype.js Line 464
jQuery.query is undefined
file:///C:/apache-activemq-5.2.0/webapps/Client/test.html?Tselect=8 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
this?

Thanks,
Doug


<html>
<head>
<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>
      <script>
      jQuery.noConflict();
      jQuery(document).ready(function(){
            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);
        
      });
      </script>
</head>
<body>
<div id="TestArea"></div>
</body>
</html>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message