You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Dan Schooler (JIRA)" <ji...@apache.org> on 2008/06/12 19:25:00 UTC

[jira] Commented: (AMQ-1377) amq.js should not have a dependency on prototype.js

    [ https://issues.apache.org/activemq/browse/AMQ-1377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43446#action_43446 ] 

Dan Schooler commented on AMQ-1377:
-----------------------------------

The most recent version of amq.js that I had attached should work fine for that.
We have been using it in our production application for nearly 6 months now.
Just download the .zip that Jim Cook had attached and then download my most recent amq.js (with the IE6 workaround) and overwrite the one from the .zip

You will need to make sure that your application explicitly includes the customized files.
The autoloader script (that you had attached) won't work for this.
Your HTML should have something like this:

<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript" src="amq_prototype_adapter.js"></script>
<script type="text/javascript" src="amq.js"></script>

So that it will explicitly include the customized files in the proper order....

> amq.js should not have a dependency on prototype.js
> ---------------------------------------------------
>
>                 Key: AMQ-1377
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1377
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.0.0
>            Reporter: Jim Cook
>         Attachments: amq.js, amq.js, amq.js, amq_js.zip
>
>
> amq.js uses a script loading technique to include behavior.js, prototype.js and _amq.js. The Behavior library is included only for the purposes of the chat client and is only GUI in nature, so that should go. Also, Prototype is included for its AJAX functionality, however everyone has their favorite javascript library and although I cut my teeth on prototype, I use jQuery now. I certainly don't want amq.js to include prototype when I have a perfectly good AJAX library already included in jQuery.
> IMHO, amq.js should include only the functionality of client-side javascript-enabled JMS. The page author should include her AJAX library of choice (prototype, dojo, jquery, mootools, etc.) and an adapter class that allows amq.js to use the particular ajax library.

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