php - AJAX Variable data -


i have question ajax.

my ajax script :

{   "data": "noinduk",   "width": "100px",   "sclass": "text-center",   "orderable": false,   "mrender": function(data) {     return '<a href="data.php?noinduk="' + data + '"">edit</a>';   } 

how can make more 1 variable review data request.

 return '<a href="data.php?noinduk="'+ data + '"">edit</a>';    

be

 return '<a href="data.php?noinduk="'+ data + '"/"'+ data2 + '"">edit</a>';  

one solution whole data concatenating specific delimiter | , on ajax response split data, have 2 responses.

{ "data": "noinduk", "width": "100px", "sclass": "text-center", "orderable": false, "mrender": function(data) { var  newdata = data.split('|'); '<a href="data.php?noinduk="'+ newdata[0] + '"/"'+ newdata[1]+ '"">edit</a>';  } 

Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -