JSON problem
JSON problem
lordcaballo
Posts: 4Questions: 0Answers: 0
Hello!
I just created a "Generator" (http://editor.datatables.net/generator/) download package.
Then I changed the mySQL database info in /php/lib/config.php, created the DB and uploaded all to my website.
Sadly all I get is a: <>
What is wrong? What can I change or modify??
If you need the URL, is: http://www.diego-garcia-calleja.webege.com/languages/prueba/palabras.html
Thanks for your help! :D
I just created a "Generator" (http://editor.datatables.net/generator/) download package.
Then I changed the mySQL database info in /php/lib/config.php, created the DB and uploaded all to my website.
Sadly all I get is a: <>
What is wrong? What can I change or modify??
If you need the URL, is: http://www.diego-garcia-calleja.webege.com/languages/prueba/palabras.html
Thanks for your help! :D
This discussion has been closed.
Replies
Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /home/a6718958/public_html/languages/prueba/php/table.palabras.php on line 13
[code]
/*
* Editor client script for DB table palabras
* Automatically generated by http://editor.datatables.net/generator
*/
(function($){
$(document).ready(function() {
var editor = new $.fn.dataTable.Editor( {
"ajaxUrl": "php/table.palabras.php",
"domTable": "#palabras",
"fields": [
{
"label": "Language",
"name": "language",
"type": "text"
},
{
"label": "Phrase",
"name": "phrase",
"type": "text"
},
{
"label": "English translation",
"name": "translation",
"type": "text"
}
]
} );
$('#palabras').dataTable( {
"sDom": "Tfrtip",
"sAjaxSource": "php/table.palabras.php",
"aoColumns": [
{
"mData": "language"
},
{
"mData": "phrase"
},
{
"mData": "translation"
}
],
"oTableTools": {
"sRowSelect": "multi",
"aButtons": [
{ "sExtends": "editor_create", "editor": editor },
{ "sExtends": "editor_edit", "editor": editor },
{ "sExtends": "editor_remove", "editor": editor }
]
}
} );
} );
}(jQuery));
[/code]
Allan