ajax data xml string problem
- $(document).on('click','#metadataListTable .delete', function () { /
- var ans = confirm("Do you want to delete Metadata?");
- if(ans==true){
- var nRow = $(this).parents('tr')[0];
- var data = oTable.row( $(this).parents('tr') ).data();
- alert( data[10] +" ========= "+ data[11] );
- oTable.row( $(this).parents('tr')).remove().draw();
- $.ajax({
- url: "deleteMetadata.do",
- data: "id=" + nRow.id + "&flag=" + "T" + "&ifData=" + data[10] + "&env=" + data[11],
- success: function(response) {
- // alert(response.message);
- toastr.success(response.message);
-
- }
- })
- }
- });
my problem is in the ajax , for example :
the two hidden columns :
-
| <td class="idata"><Interface environment="QA" from="rm" name="8zxjckeq" to="rm" version="4.0">\r<HTTPS/>\r</Interface></td> |
|
<tdclass="edata">QA</td> |
data[10] =
" <Interface environment="QA" from="rm" name="8zxjckeq" to="rm" version="4.0">\r<HTTPS/>\r</Interface> "
and data[11] ="
QA"
when I go to the server side to read the value of
ifData :
- String ifaceData = request.getParameter("ifData");
It is always empty.