Adding Local reference of jquery.dataTables.min.css not working as it is working for online refer

Adding Local reference of jquery.dataTables.min.css not working as it is working for online refer

RohanMaladkarRohanMaladkar Posts: 11Questions: 4Answers: 0

Hi,

In my project I am using jquery.dataTables.min.css file reference.
Local Path "<link rel="stylesheet" type="text/css" href="C:\Common\styles\jquery.dataTables.min.css">. But it is not giving arrow nest to column header but as soon as I replace path with "CDN online path It works.

Adding following line working for me.
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css">

Is there something I am missing while adding Local file path?
Please Help

Answers

  • RohanMaladkarRohanMaladkar Posts: 11Questions: 4Answers: 0

    With Local reference

    With Online reference

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    Yep, you can't just access files on your local disk as that would be a security issue - they should always be relative to the root of the webserver.

This discussion has been closed.