dataSrc Problems with td tag
dataSrc Problems with td tag
noSkill06s
Posts: 2Questions: 2Answers: 0
This is how i make my Ayax call
$(document).ready( function () {
$('#table_id').DataTable({
ajax:{
url: 'gateWay_LIVE_UPDATE.php',
dataSrc: 'data',
},
columns: [
{data: 'QUE'},
{data: 'FAILED'},
{data: 'TOTAL'},
{data: 'STATE'},
{data: 'STATE'}
]
});
How my Table looks like
</thead>
<tbody>
<tr>
<td class="gateWayUnderPoint">GATEWAY1</td>------------->>>>>>>>>PROBLEM
<td id="GTW_195_QUE"></td>
<td id="GTW_195_FAILED"></td>
<td id="GTW_195_TOTAL"></td>
<td id="GTW_195_STATE"></td>
</tr>
<tr>
<td class="gateWayUnderPoint">GATEWAY2</td>------------->>>>>>>>>PROBLEM
<td id="GTW_196_QUE"></td>
<td id="GTW_196_FAILED"></td>
<td id="GTW_196_TOTAL"></td>
<td id="GTW_196_STATE"></td>
</tr>
<tr>
The Problem is my Ajax call overwrites my td with the class "gateWayUnderPoint" it fills the data to all td tags
but i need the first td tag to write down the headline Question is there any solution to block this or should i use a other way to call my datas
How i call my Datas
->API-curl(php)->to->JSON(Assoziative Array)->to HTML
This discussion has been closed.
Answers
This seems the same as your other thread here, where I said either have data returned by Ajax or in the DOM, you can't have both.