I am trying to modify the activemq webapp to dynamically visualize data using highcharts. Specially, the following code works fine where chart1.js does the basic highchart line draw. As soon as I uncomment amq.js, the chart stops showing up. It is a known issue?
<html>
<body>
<!-- <script src="C:/progress/fuse-message-broker-5.3.0.1/webapps/demo/Highcharts-3.0.6/js/highcharts.js"></script> -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="http://code.highcharts.com/highcharts.js"/>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
<script type="text/javascript" src="chart1.js"></script>
<!--- <script type="text/javascript" src="../amq/amq.js"></script>
<script type="text/javascript">amq.uri='../amq';</script>
--->
</body>
</html>
thanks
<script type="text/javascript">amq.uri='../amq';</script>
is the reason. Probably this should be done after DOM is loaded. – Paweł Fus$(function () { $(document).ready(function() { Highcharts.setOptions({ global: { useUTC: false } });...
so I think DOM is already loaded before the line of amq.js – W GE