You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a "best" way to getData() from the client to the server in asp.net. I've seen references to using json or putting data in a hidden field. I'd like to use a tried and true method instead of reinventing it myself.
Cheers,
Jeff
The text was updated successfully, but these errors were encountered:
// Accept Signature /////////////////////////////////////////////////////////////////////////////////
var baseUrl = RootUrl + "WebServices/Pt.asmx/";
function SignatureAccept() {
var $cbs = $('input[name="ToDeliver"]'); // This is series of Checkboxes
var Keys = '';
$cbs.each(function () { if (this.checked) Keys += this.value + "~"; });
var Signature = $("#divSignature").jSignature("getData", "base30");
var Notes = $('#deliveryNotes').val();
var Confirm = ($("#deliveryConfirmation").val() === '1');
var jsonData = JSON.stringify({ "Token": Token, "SignatureType": Signature[0], "SignatureData": Signature[1], "Keys": Keys, "Notes": Notes, "Confirm": Confirm });
$.ajax({
url: baseUrl + "DeliverE",
data: jsonData,
success: function (data) {
if (data.d.Success) { // Variable passed back from webservice
$("#divShowPackages").hide(); // hide a few items
$("#divGetSignature").hide();
$("#divFindResident").show(); // screen that we want to show
$("#divSignature").replaceWith(divCloneSignature); // Copy of the div before drawing signature
Clear(); // Clears some of our variables
var Keys = '';
SoundComplete(); // Beeps on success
}
MessagesShow(data.d.Message); // Our message handler
}
});
}
Is there a "best" way to getData() from the client to the server in asp.net. I've seen references to using json or putting data in a hidden field. I'd like to use a tried and true method instead of reinventing it myself.
Cheers,
Jeff
The text was updated successfully, but these errors were encountered: