ajax: include/file.txt
ajax: include/file.txt
rrzavaleta
Posts: 78Questions: 52Answers: 2
I have a function that contains the contents of the row in the following format .:
{ "data" : [ [" 1", " 1", " DELL ", " desc string value ", "1 " ] ,
[" 1", " 2", " dell ", " secuendia value two," " 1 " ] ] } ,
How I can use sta function to make an ajax call to the same function ? Is this possible? I'm trying for variables but not tabala running ... help me
$ (document ) .ready (function ( ) {
$ .x1 = (' { "data" : [ [" 1", " 1", " DELL ", " desc string value ", "1 " ] , [" 1", " 2", " dell ", " secuendia value two "," 1 " ] ]} ');
$ ('# example' ) . dataTable ({
" ajax " : $ .x1 ,
} ) ;
} ) ;
This discussion has been closed.
Answers
sta function
? What issta
?Use
data
if you want to pass data to the table on initialisation.Allan