dynamic hyperlink
dynamic hyperlink
seveneleven
Posts: 6Questions: 0Answers: 0
Hi,
Thanks DT is really is amazing!
My question is how I can get my column that contains http: address to be click-able and direct the user to that site. I have been looking for an answer in the forums all day now and haven't found an answer. I am using server-side
Thanks
Thanks DT is really is amazing!
My question is how I can get my column that contains http: address to be click-able and direct the user to that site. I have been looking for an answer in the forums all day now and haven't found an answer. I am using server-side
Thanks
This discussion has been closed.
Replies
1. Simply have the server return an A tag with the HTML required
2. Use fnRender ( http://datatables.net/usage/columns#fnRender ) to alter the string into the HTML needed.
Allan
I am trying to work with fnRender having trouble with the syntax if someone doesnt mind giving me a hand here is what I have:
[code]
{ "fnRender": function ( oObj ) {
return = "'"oObj.aData[1]";
} },
[/code]
{ "fnRender": function ( oObj ) {
return = ''+oObj.aData[1]+'';
} },
[/code]
Allan
I'm trying to put links on my table, could you help me please? :(
http://datatables.net/forums/comments.php?DiscussionID=3723&page=1#Item_0
I didn't understand the code fnRender :s ... is it the solution for my problem? what shall i do?!
Thanks