EasyUI Forum
May 04, 2024, 08:32:55 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: file download root path info  (Read 10284 times)
kvkv
Newbie
*
Posts: 4


View Profile
« on: March 20, 2013, 05:55:45 AM »

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>';
}
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!