Creating a hyperlink with SSP.class.php
Creating a hyperlink with SSP.class.php
Hello Datatables Community,
I have the text for a link being displayed in my datatable. I was wondering how to make this an active hyperlink; I have seen this done when not using SSP.class.php but I could not find any examples( nor figure it out on my own) the placement for a hyperlink within SSP.class.
My current datatable is extremely similar to the 'server-side processing example; however I am not able to show sample code. I have not altered SSP.class in anyway; https://github.com/DataTables/DataTables/blob/master/examples/server_side/scripts/ssp.class.php
My current workaround is doing an 'update' within mysql to concat the href information but that is obviously not ideal; as I am altering the contents of the table.
This question has an accepted answers - jump to answer
Answers
Why would you want to do this in ssp.class.php?
There is an example of rendering a hyperlink in the docs:
https://datatables.net/reference/option/columns.render
oh!! I could not find an updated Columns.render reference page! I will test that right now and get back to you shortly
WOW; that worked. What a simple fix.
Thanks for pointing me to the columns.render page!!