why datatables not working after i move it into different server?
why datatables not working after i move it into different server?
haroro
Posts: 4Questions: 1Answers: 0
the previous server datatables works just fine but the new server does not. already move the datatables folder but still
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap -->
<link href="../vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome -->
<link href="../vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<!-- NProgress -->
<link href="../vendors/nprogress/nprogress.css" rel="stylesheet">
<!-- iCheck -->
<link href="../vendors/iCheck/skins/flat/green.css" rel="stylesheet">
<!-- Datatables -->
<link href="../vendors/datatables.net-bs/css/dataTables.bootstrap.min.css" rel="stylesheet">
<link href="../vendors/datatables.net-buttons-bs/css/buttons.bootstrap.min.css" rel="stylesheet">
<link href="../vendors/datatables.net-fixedheader-bs/css/fixedHeader.bootstrap.min.css" rel="stylesheet">
<link href="../vendors/datatables.net-responsive-bs/css/responsive.bootstrap.min.css" rel="stylesheet">
<link href="../vendors/datatables.net-scroller-bs/css/scroller.bootstrap.min.css" rel="stylesheet">
<script type="text/javascript">
$(document).ready(function () {
$('#table_id').dataTable();
});
</script>
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
// JQuery Reference, If you have added jQuery reference in your master page then ignore,
// else include this too with the below reference
<script src="https://cdn.datatables.net/1.10.4/js/jquery.dataTables.min.js"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.4/css/jquery.dataTables.min.css">
<!-- Custom Theme Style -->
<link href="../build/css/custom.min.css" rel="stylesheet">
</head>
This discussion has been closed.
Answers
Hi @haroro
Looks like there is an issue with the path you have used, please check whether the libraries you need has been loaded, for further clarification you can go through the below image
Thanks
Koka
already double checked the uploaded and needed files. but still the graph not working. is it possible there is something need to be change in the hosting?
Do you receive any alert or browser console errors?
What exactly happens?
I would start by looking at the server logs to see if there are any errors. You can also look at the browser's developer tools > network to see what happens between the browser and server.
It doesn't look like you are using Datatables to load the data. This suggests you are loading the data directly into the DOM. How are you doing this and is it working?
Kevin
already checked the developer tools and this is whats come out
Uncaught SyntaxError:Invalid or unexpected token jquery.min.js:3
Uncaught SyntaxError: missing ) after argument list bootstrap.min.js:7
Uncaught SyntaxError: Invalid or unexpected token echarts.min.js:10
Uncaught SyntaxError: Invalid or unexpected token world.js:26
Uncaught ReferenceError: jQuery is not defined custom.min.js:1
at custom.min.js:1
the path and the file same as before and i did not change anything there. but then after uploaded to different server the graph did not working.
If the paths are the same, but the files can't be loaded, it would be worth checking the permissions. Also, check the webserver's logs, there may be clues in there.
thank you all for replying, i'm quite new in this. sorry for asking silly question but may i know how to check for the permissions? and also webserver's logs as well.