Server side scripting matching columns from ajax request

Server side scripting matching columns from ajax request

smccransmccran Posts: 7Questions: 0Answers: 0
edited February 2010 in General
Hi,
I am trying to return a query from a server side database, and add a calculated field to the results. The only issue is that when you add the fields to the javascript request you have to match the requested fields exactly to the database fields. Has anyone written anything like this?

I'm thinking that I'm going to have to intercept the column list in some way, and fake it.

Thanks
Shaun

Replies

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

    You can add as many columns as you want coming back from the server-side - they don't need to 1:1 map to the database. Here is an example which adds a link tag: http://datatables.net/forums/comments.php?DiscussionID=1388

    Allan
This discussion has been closed.