ajax: include/file.txt

ajax: include/file.txt

rrzavaletarrzavaleta Posts: 78Questions: 52Answers: 2
edited December 2014 in DataTables

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 ,
} ) ;
} ) ;

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    sta function? What is sta?

    Use data if you want to pass data to the table on initialisation.

    Allan

This discussion has been closed.