Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
110
rated 0 times [  111] [ 1]  / answers: 1 / hits: 24005  / 12 Years ago, sat, july 14, 2012, 12:00:00

I am trying to run the same code in this jsFiddle locally but I got error from firebug



uncaught exception: Highcharts error #13: www.highcharts.com/errors/13


The included script fiels:



<script type=text/javascript src=http://code.jquery.com/jquery-latest.js></script>
<script type=text/javascript src=http://highcharts.com/js/testing.js></script>
<script type=text/javascript src=test.js></script> // my js file


same thing happens for this jsFiddle as well.



Anyone know why this happens?



EDIT: I've found the reason for the problem. Actually I have to put the <script type=text/javascript src=test.js></script> tag after my <div id=container></div> tag, otherwise the uncaught exception will be showing even I put the <script> tag in <head>. I never put the script file in the <body> tag before, and this is the first time I met this problem. Can Someone explain me why that happen?



Thanks


More From » jquery

 Answers
18

This means that Highcharts is loaded and the config is loaded, but the renderTo option is wrong, or there is no div with that id in the page. See www.highcharts.com/errors/13.


[#84256] Friday, July 13, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
carrington

Total Points: 674
Total Questions: 90
Total Answers: 108

Location: Burundi
Member since Sat, Aug 21, 2021
3 Years ago
;