Concatenate HTML in mData(Prop)
Concatenate HTML in mData(Prop)
nskwortsow
Posts: 120Questions: 0Answers: 0
Hi Allan,
How would I generate HTML on the fly in mDataProp?
The idea is that 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
How would I generate HTML on the fly in mDataProp?
The idea is that 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
This discussion has been closed.
Replies
"mRender": function ( data, type, full ) {
return 'Download';
}
Allan