need to display the image according to the status value
need to display the image according to the status value
Usha_kasi123
Posts: 4Questions: 0Answers: 0
Hi Allan, I am new to DataTable Plugin, now a days i am using datatable plugin for pagination, now i am facing one problem.That is
we are using servlet and jsp aplication.My problem is, In database there is no image or any link, but i need to display the image according to the status value.so i have to set the image in JSON response Can you please give me a clarity
This discussion has been closed.
Replies
Hello Usha_kasi123,
I know how to do this in PHP, so I'll give you some pseudo code and hope you can figure it out from there.
I'm assuming you're using some form of Datatables ssp processing, so your code probably looks something like:
For Datatables, a two dimensional array should be returned in the form of tableData[row][column], so you can loop through it and modify it before returning it.
I know this is just an overview, but I hope it gets you close enough so that you can figure out the code.