How To Test JQUERY AJAX call example by RNAN


$("#UpdateKM").click(function (e)
{
    var upkm = document.getElementById("newKmtxt").value;
    alert('myurl');
    $.ajax(
    {
        url: 'myurl',
        type: 'GET',
        dataType: 'json'
    }).done(function (result)
    {
        alert("done");  //or 1
    }).fail(function (xhr, status,errorThrown)
    {
        alert(errorThrown);   //or 2
    }).
    always(function (jqXHR, complete_textStatus)
    {
        alert('3');
    })
});
THANK U RNAN!!

Comments

Popular posts from this blog

c# Service Play Sound with NAudio example by Moshe

SOLVED The item could not be indexed successfully because the item failed in the indexing subsystem

JS/JQ simulate Enter event