-1
I have an application that insert some information through an Ajax call, so far all right, the data enter normally however, I can only view the changes after I do a refresh on the page, I wanted then, when entering the data through Ajax, my table was dynamically altered, without having to reload the page. If anyone can give me some example of how to do that, I would be most grateful for your help.
Ajax to insert data...
<script type="text/javascript">
$('#Salvar').click(function () {
var url = "/Candidato/insert";
var curso = $("#curso").val();
var instituicao = $("#instituicao").val();
$.post(url, { curso: curso, instituicao: instituicao }, function (data) {
$("index").html(data);
});
})
</script>
More information needs to be passed on. For example what is this object
index
, what data is returned indata
, how this table is constituted and perhaps the server code that generates this table.– Augusto Vasques