Skip to content

The dataTables example shows how to use Json data as a data source without Ajax

Notifications You must be signed in to change notification settings

dcsline/dataTablesJSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dataTables JSON sample without Ajax

Intro

The dataTables example shows how to use Json data as a data source (analogous to database handling).

The example uses

  • Express
  • Socket.io
  • JQuery
  • dataTables

Read the Json data

The example data comes from the examples from Jasperreport. A MySQL database was built from this data. Then the Orders table was exported as Json, thus forming a good database.

Extract from index.js

    jsonfile.readFile (file)
      .then (contents => {
         ..... instruction for further processing
      })
      .catch (error => console.error (error)) ````

The data read is then processed within the html page (analogous to the procedure when using databases as a data source).

## Additional filters DatePicker DateRange

The example also contains a solution for filtering the values ​​of a column using two DatePicker values ​​(DateRange) based on jherax's filterArray.js .

About

The dataTables example shows how to use Json data as a data source without Ajax

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published