I have a main page that calls other web pages using jquery.load like
$("#loading").show(); $("#arena").load('Project.prx?PID=' + dataReport); $("#loading").hide();
(Project.prx is in its own CGI language, such as ColdFusion, and deflates HTML and JavaScript.)
In the browser debugger, I get error messages like the following, every time I click the link, namely
Uncaught Highcharts error
Highcharts says this error:
Error Highcharts # 16
Screen charts already defined on the page
This error occurs the second time that Highcharts or Highstock are loaded onto the same page, so the Highcharts namespace is already defined. Keep in mind that the Highcharts.Chart constructor and all Highcharts functions are included in Highstock, so if you use a combination of Chart and StockChart in combination, you need to download the highstock.js file.
Since I'm using jquery load () and div targeting in the current document, this is a fair call to Highcharts to claim that I am loading a second instance of the namespace. However, this is what I want to do.
So, any idea how to load other Highcharts pages into one with an existing instance of the Highcharts namespace?
LATER
I had some success when I did not put high diagrams in the controller and only for purposes and gave out
$("#loading").show(); $("#arena").empty(); delete(Highcharts); $("#arena").load('Project.prx?PID=' + dataReport); $("#loading").hide();
However, this was not successful in every case.