$(...).ejPdfViewer is not a function

Hi I'm trying to insert the pdf viewver control in an aspx page.
The error in question returns to me: $(...).ejPdfViewer is not a function
I entered the following code

<script src="https://cdn.syncfusion.com/js/assets/external/jquery-1.10.2.min.js"></script>

<div class="control">
        <ej:pdfviewer
            id="PdfViewer1"
            PdfService="Local"
            ServiceUrl="https://js.syncfusion.com/ejServices/api/PdfViewer"
            runat="server">
        </ej:pdfviewer>
    </div>
what am I doing wrong?

thanks

1 Reply 1 reply marked as answer

AA Akshaya Arivoli Syncfusion Team November 25, 2020 06:49 PM UTC

Hi Giovanni, 

Thank you for contacting Syncfusion support. 

Based on the provided details, we found the script file is not referred to properly so the error occurred. We have created a simple sample and shared the same in the below link, 


  <link rel='nofollow' href="https://cdn.syncfusion.com/18.1.0.52/js/web/flat-azure/ej.web.all.min.css" rel="stylesheet" /> 
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> 
<script src="https://cdn.syncfusion.com/18.1.0.52/js/web/ej.web.all.min.js"></script> 


Kindly try it and revert us if you have any concerns. 

Regards, 
Akshaya  


Marked as answer
Loader.
Up arrow icon