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

OverTheWire[.com] Natas Walkthrough - JUST HINT, NO SPOILERS

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

Asp.Net Ending Response options, Response.End() vs CompleteRequest()