Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VM1050:1 Uncaught ReferenceError: Highcharts is not defined #81

Open
byphone opened this issue Mar 27, 2020 · 0 comments
Open

VM1050:1 Uncaught ReferenceError: Highcharts is not defined #81

byphone opened this issue Mar 27, 2020 · 0 comments

Comments

@byphone
Copy link

byphone commented Mar 27, 2020

Hi,

I have two pjax container, each one being a destination for a graphic. The reload of the containers is managed by a js like that
$.pjax.reload({url: '/dashboard/dashboard/graph-calls', container: '#dashboard-graphcalls', data: {dashboardperiod: '1580515200'}, async: true, push: false, replace: false, type: 'POST'});

$.pjax.reload({url: '/dashboard/dashboard/graph-mins', container: '#dashboard-graphmins', data: {dashboardperiod: '1580515200'}, async: true, push: false, replace: false, type: 'POST'});

i write the js code to be sure that second reload is executed when first is completed, to avoid simultaneous pjax request.

The first reload is a success, the second throw a js exception :
VM1050:1 Uncaught ReferenceError: Highcharts is not defined
at :1:1
at DOMEval (jquery.js:124)
at domManip (jquery.js:5945)
at jQuery.fn.init.append (jquery.js:6081)
at HTMLScriptElement.cb (jquery.pjax.js:821)
at next (jquery.pjax.js:833)
at HTMLScriptElement.cb (jquery.pjax.js:813)
at next (jquery.pjax.js:833)
at HTMLScriptElement.cb (jquery.pjax.js:813)
at next (jquery.pjax.js:833)

After this error, i write manually in the chrome console the command to reload the second pjax container , it's ok.

Idea ?

Regards

Guillaume

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant