DataTables transfering hosts, Undefined
DataTables transfering hosts, Undefined
Greetings,
I have recently switched from a localhost server to a dedicated webhost for my companies website. I'm currently working through a number of transfer errors (such as lacking proper version of PHP, missing JQuery, etc etc...). One thing that broke during the transition was the DataTables plugin I am using. Below is the code - Along with the error message. I get the feeling that the issue lies somewhere other then datatables, and I was wondering if anyone could point me in the right direction to solve this problem.
Please note, DataTables was working perfectly previously. I have no reason so suspect it is an issue with my setup for DataTables directly. It could be related to the jquery, or perhaps a missing website setting. Also note I did attempt to find a solution, some of the other similar issues I have already tried, along with removing and rewriting the code. I also renamed the files to exclude multiple .'s in the filename.
Thanks.
[code]
$(document).ready(function(){
$('#subTable').dataTable({
"bProcessing": true,
"bServerSide": true,
"bStateSave": true,
"iCookieDuration ": 7200,
"sAjaxSource": "/functions/json_tenders.php?percentage=<?=$percent;?>&lang=<?=$_SESSION['lang'];?>&searchName=<?=$searchName;?>&searchValue=<?=$searchValue;?>",
"sPaginationType": "full_numbers",
"sDom": '<"top"fl>rt<"bottom"pi><"clear">',
"bAutoWidth": true
});
});
[/code]
http://bidscaribbean.com/free_browsing.php
[code]Uncaught TypeError: undefined is not a function <-- On $('#subTable').dataTable[/code]
I have recently switched from a localhost server to a dedicated webhost for my companies website. I'm currently working through a number of transfer errors (such as lacking proper version of PHP, missing JQuery, etc etc...). One thing that broke during the transition was the DataTables plugin I am using. Below is the code - Along with the error message. I get the feeling that the issue lies somewhere other then datatables, and I was wondering if anyone could point me in the right direction to solve this problem.
Please note, DataTables was working perfectly previously. I have no reason so suspect it is an issue with my setup for DataTables directly. It could be related to the jquery, or perhaps a missing website setting. Also note I did attempt to find a solution, some of the other similar issues I have already tried, along with removing and rewriting the code. I also renamed the files to exclude multiple .'s in the filename.
Thanks.
[code]
$(document).ready(function(){
$('#subTable').dataTable({
"bProcessing": true,
"bServerSide": true,
"bStateSave": true,
"iCookieDuration ": 7200,
"sAjaxSource": "/functions/json_tenders.php?percentage=<?=$percent;?>&lang=<?=$_SESSION['lang'];?>&searchName=<?=$searchName;?>&searchValue=<?=$searchValue;?>",
"sPaginationType": "full_numbers",
"sDom": '<"top"fl>rt<"bottom"pi><"clear">',
"bAutoWidth": true
});
});
[/code]
http://bidscaribbean.com/free_browsing.php
[code]Uncaught TypeError: undefined is not a function <-- On $('#subTable').dataTable[/code]
This discussion has been closed.
Replies
Allan