There is a page on HTML
<tr id="call-Id" class="call-u"> <td >Id</td> <td>Name</td> <td>Contact</td> <td>Date</td> <td>Information</td> </tr>
I get it AJAX request, but on the page on which I get it the attributes id="call-Id" class="call-u" are not saved, that is, at the output we get
<table> <tr> <td>ID</td> <td>Name</td> <td>Contact</td> <td>Date</td> <td>Info</td> </tr> </table>
as you can see, the attributes of the <tr> not saved.
such a script:
function getdata() { var post = $.post("/Admin/getCalls") .success(processdata); } } function processdata(data) { var b = document.getElementById("calls-container"); var c = document.getElementById("xml-container"); al c.innerHTML = data; if (b.innerHTML != c.innerHTML) { b.innerHTML = data; var audio = new Audio('/Content/Sounds/ding.mp3'); audio.play(); } }