1

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 ?

6
  • In your browser console you can click on the error and it takes you to a page that explains what that Highcharts error #16 means exactly
    – RononDex
    Commented Jan 17, 2014 at 14:53
  • I already know what the error means, I want to know the best way to load the highcharts.js file Commented Jan 17, 2014 at 14:54
  • Are you using sharepoint? your _layouts folder points me towards this assumption
    – RononDex
    Commented Jan 17, 2014 at 14:54
  • @RononDex No i am not using share point, it is a MVC 3 application Commented Jan 17, 2014 at 14:55
  • Only load it once in some master Index call that is not used by any other views.
    – wergeld
    Commented Jan 17, 2014 at 15:24

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.