Fail load js files in single page application
Posted: Thu Jun 29, 2017 8:43 pm
I have problems trying to integrate the js files in my application, I get the following message:
The files I load through :
And when I run the report the page throws the following message:
VM2687:12 Uncaught TypeError: Stimulsoft.Viewer.StiViewer is not a constructor
The code in view is:
What am I doing wrong?
Code: Select all
Uncaught TypeError: Cannot read property 'Localization' of undefined
at e.Viewer.e.Viewer (stimulsoft.viewer.js:9)
at Stimulsoft (stimulsoft.viewer.js:9)
at stimulsoft.viewer.js:9
Code: Select all
$.cachedScript(FilesURL + "/Assets/js/stimulsoft/" + "stimulsoft.reports.js");
$.cachedScript(FilesURL+ "/Assets/js/stimulsoft/" + "stimulsoft.viewer.js");
VM2687:12 Uncaught TypeError: Stimulsoft.Viewer.StiViewer is not a constructor
The code in view is:
Code: Select all
var report = new Stimulsoft.Report.StiReport();
report.loadFile(ServerURL + "/DownloadFile");
var viewer = new Stimulsoft.Viewer.StiViewer(null, "StiViewer", false);
viewer.report = report;
viewer.renderHtml("viewerContent");