I am first rendering a view called 'Index' which has various ajax buttons on. I click a ajax button which then loads a partial view called 'SpamStatsPVW' into a div in 'Index'. Once this partial view has been loaded it then loads another partial view called 'spamStatsContent' into a div in 'SpamStatsPVW'
spamStatsContent contains my highcharts function which build the charts. The first time this works fine but if I press the refresh ajax button in the 'SpamStatsPVW' it give me highcharts error #16.
I am loading the highcharts.js in the '_layout' view used by all pages. What is the best way to load this so I do not get this error ?
Note: I already have a charts page which work fine and I do not encounter this error. Again it has a view called 'Index' which then inserts the partial view 'statsContent' into a div in 'Index'
Why does this chart work fine ?