Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81690

Concatenate HTML in mData(Prop)

$
0
0
Hi Allan,

How would I generate HTML on the fly in mDataProp?

The idea is that <a href class="dt_edit"> tags are added to a column, so that it becomes a hyperlink instead of flat text? Should I generate the HTML client-side (JS), server-side (PHP) or store it as a hyperlink in the database (rather not; presentation and data should be separated).

Cannot find an example of this. You have one where "Edit" is sDefaultContent; but I want the actual live column name to be a hyperlink which triggers an edit form (ideally, envelope).

/N

Viewing all articles
Browse latest Browse all 81690

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>