Hi,
The following code gives me javascript error and I can't see why.
function showPDFViewer() {
pdfviewer = new ej.pdfviewer.PdfViewer({
serviceUrl: 'https://xxxxx.com:6001/api/pdfviewer',
documentPath: fileContent,
documentLoad: "documentLoaded"
});
pdfviewer.appendTo('#pdfviewer');
});
}
function documentLoaded(args) {
//code...
}
This is the javascript error in the Chrome console when the document loads:
What I am doing wrong?
Thank you very much!
This is a example:
https://stackblitz.com/edit/vxjdjb-bhesgf?file=index.js
The "It works!" alert is never displayed.
Thank you
Hi Pere,
Kindly refer to the modified sample to get the alert message during loading and let us know if the solution provided is helpful to you.
Stack blitz: https://stackblitz.com/edit/vxjdjb-vzn6rm?file=index.js
Regards,
Arun kumar
Now it works fine!
Thank you very much!
Hi Pere,
Thank you for your updates. You can close the ticket if you have no further queries here.
Regards,
Arun kumar
Hi ArunKumar,
How do I close the ticket? (I have already marked an answer as a solution)
Regards,
Hi Pere,
We have marked this forum as solved.
Regards,
Anitha