javascript - datatable with json data using ajax request and use hyperlink -



javascript - datatable with json data using ajax request and use hyperlink -

hi below datatable java script,

$('#proj_emp_table').datatable({ "sajaxsource": "/projects/project_json/", "fnserverdata": function ( ssource, aodata, fncallback, osettings ) { osettings.jqxhr = $.ajax( { "datatype": 'json', "type": "get", "url": ssource, "data": aodata, "success": fncallback } ); } });

and html ,

<table id='proj_emp_table' class="display"> <thead> <tr> <th>employee id</th> <th>employee name</th> <th>experience prior asm</th> <th>joining date</th> <th>asm experience</th> <th>billing start date</th> <th>bill status</th> </tr> </thead> <tbody> <tr> <td></td> </tr> </tbody> <tfoot> <tr> <th>employee id</th> <th>employee name</th> <th>experience prior asm</th> <th>joining date</th> <th>asm experience</th> <th>billing start date</th> <th>bill status</th> </tr> </tfoot> </table>

here ajax request works fine , getting json info , table formed. how add together hyperlink column.

eg: employee name column should have hyperlink should go page /employee/id/

here id should picked json info 1st field.

the info sending include <a href> code

javascript jquery ajax datatables jquery-datatables

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -