You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'});
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: