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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -