Hi I used jquery easy ui datagrid. I can download file from the Download SSP link on datagrid. I used local path of the file which is needed to download. It works fine. But when I hosting the file on the server, it doesnt work as local path. I want to give server path to the href value. I wrote the code below which I used. Please give suggestion. I also give the wrong code which I try to give path on server.
function formatDetail_csp(value, row) {
//$_SERVER [ 'DOCUMENT_ROOT' ] . '/core/init.php';
//var href = '$_SERVER [ DOCUMENT_ROOT ] /dashboard/upload/' + row.ssp_file;
var href = '
http://localhost:8080/dashboard/upload/' + row.ssp_file;
return '<a href="' + href + '">Download SSP</a>';
}