- The FormData interface provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data".
================================================================
Datatable.Net Grid Event Bind For Paging
$("a[data-dt-idx]").click(function(){
$(".btnUrl").off().click(function () {
vDialog.OpenURL($(this).attr("url"));
});
$(".btnEdit").off().click(function () {
window.location.href = "/Event/ManageEvent?eid=" + $(this).attr("eid");
});
$(".btnDelete").off().click(function () {
vDialog.DeleteEvent($(this).attr("eid"));
});
});
=========================================================
Get Query String using jquery
$.urlParam = function (name) {
var results = new RegExp('[\?&]' + name + '=([^&#]*)')
.exec(window.location.href);
return results[1] || 0;
}
Call method to get query string
mid: $.urlParam("mid")
or
var mid = $.urlParam("mid")
------------------------------------------------------------------------------------------------------
No comments:
Post a Comment