field anchor disappears after update
field anchor disappears after update
Hi!
I added a created value via aoColumns at Datatables initialisation like this, so the content returned appears as a link, with the returned data as href:
"fnCreatedCell": function (nTd, sData, oData, iRow, iCol)
{
$(nTd).html('' + 'Link' + '')
}
But when I update the row via editor, the link (and I guess everything that could have been formatted in that row) disappears, with only the exact content/data returned in that field.
I am using PHP+MySQL.
What and where should be modified within the editor script (so that the same format would remain)?
(Sorry if something similar has been asked before, I looked for it but did not find anything exactly relateable.)
Many thanks!
I added a created value via aoColumns at Datatables initialisation like this, so the content returned appears as a link, with the returned data as href:
"fnCreatedCell": function (nTd, sData, oData, iRow, iCol)
{
$(nTd).html('' + 'Link' + '')
}
But when I update the row via editor, the link (and I guess everything that could have been formatted in that row) disappears, with only the exact content/data returned in that field.
I am using PHP+MySQL.
What and where should be modified within the editor script (so that the same format would remain)?
(Sorry if something similar has been asked before, I looked for it but did not find anything exactly relateable.)
Many thanks!
This discussion has been closed.
Replies
[code]
{"sTitle":"External Case","mData":"externalcase","mRender":function (data,type,full)
{
return '' +data + '';
}},
[/code]
Allan
Cheers