Multiple AJAX sources, same table, different columns

Multiple AJAX sources, same table, different columns

d0mokund0mokun Posts: 12Questions: 4Answers: 0

Hi everyone,

Sorry if this has been asked before.. I've spent a fair moment searching though I'm sure an elusive post can slip under even the greatest radar.. Anyway!

Is it possible to have multiple AJAX sources for the same table? EG. I have a single table showing users and their associated 'projects'. Columns 1 and 2 show data from one SQL table. Column 3 shows data from another table where 1/2 exist.

Thanks
Dan.

This question has an accepted answers - jump to answer

Answers

  • glendersonglenderson Posts: 231Questions: 11Answers: 29
    Answer ✓

    I would think your best solution is to have your ajax page return the json data directly and not rely on the scripting within dataTables to perform this feature. Inside your ajax page is where you would open the database, make the connections, make the reads, and format the json response. That's how I perform it all the time in vb.net. You can either format your json manually or load contents into a class object and serialize it with a json formatter.

  • d0mokund0mokun Posts: 12Questions: 4Answers: 0

    Many thanks.. will have a prod later!

    Dan.

This discussion has been closed.