Ciao a tutti, ho una tabella che prende i dati da un file json.
Però ora glieli vorrei passare lato server sempre in formato json. Come posso fare?
Questo il codice della tabella:
i dati vengono recuperati tramite l'attributo: data-url="tables/data1.json"codice:<table data-toggle="table" data-url="tables/data1.json" data-show-refresh="true" data-show-toggle="true" data-show-columns="true" data-search="true" data-select-item-name="toolbar1" data-pagination="true" data-sort-name="name" data-sort-order="desc"> <thead> <tr> <th data-field="state" data-checkbox="true" >Item ID</th> <th data-field="id" data-sortable="true">Item ID</th> <th data-field="name" data-sortable="true">Item Name</th> <th data-field="price" data-sortable="true">Item Price</th> </tr> </thead> </table>
io come faccio a passarli da codice?

Rispondi quotando
