POST request to UPDATE rows

后端 未结 4 1373
死守一世寂寞
死守一世寂寞 2021-01-29 00:13

I\'m kind of newbie in javascript so I\'m looking for some help to create a way to drag and drop geocoding markers, to allow interactive changing addresses. I believe this is po

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-29 00:49

    Have a look at jQuery Ajax:

    Example (assuming a .NET web service that resides at a web root folder called Ajax):

    var Params = "{'myParamName': 'myParamValue'}";
    
    $.ajax({
            type: "POST",
            url: "Ajax/MyWebService.asmx/MyWSMethod",
            data: Params,
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function (response) {
                // Handle the response here as you need to...
            },
            failure: function () {
                // Handle failure if needed
            }
        });
    

提交回复
热议问题