mercredi 23 septembre 2020

web, graph, chart js , javascript ,plugin

I have used chart.js for drawing the graph and the following plugins I have used.

<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script><br/>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script><br/>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script><br/><br/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script><br/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js"></script><br/>
<script src="https://cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js"></script><br/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway:400,800"><br/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"><br/>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous"><br/>
<link rel="stylesheet" href=https://cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css><br/>

I have implemented a sample code and getting the graph as expected . But the same code integrated with my project,I am getting the following error

Uncaught TypeError: Cannot read property 'unobtrusive' of undefined
at Object.jQuery.validator.unobtrusive.parse
at HTMLDocument. (jquery.validate.unobtrusive.min.js:5)
at c (jquery-1.9.1.min.js:3)
at Object.fireWith [as resolveWith] (jquery-1.9.1.min.js:3)
at Function.ready (jquery-1.9.1.min.js:3)
at HTMLDocument.H (jquery-1.9.1.min.js:3)
jQuery.validator.unobtrusive.parse @ DXR.axd15720
(anonymous) @ jquery.validate.unobtrusive.min.js:5
c @ jquery-1.9.1.min.js:3
fireWith @ jquery-1.9.1.min.js:3
ready @ jquery-1.9.1.min.js:3
H @ jquery-1.9.1.min.js:3


When I commented the first 4 lines that error disappears .But I need those plugins to meet my requirement.
Could you please help me?
This is very important for me as I have to demonstrate this tomorrow.

I have attached the existing plug-ins in the project.enter image description here




Aucun commentaire:

Enregistrer un commentaire