Comments (1)
I use webservices. Something like...
// Accept Signature /////////////////////////////////////////////////////////////////////////////////
var baseUrl = RootUrl + "WebServices/Pt.asmx/";
function SignatureAccept() {
var
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
}
});
}
Hope this helps.
from jsignature.
Related Issues (20)
- On clicking the canvas, URL redirected to "#"
- Firing "change" event when screen resize
- How to export data to base30 after ("setData","data:image/png;base64,"+base64String) successfully.
- Does jSignature work with Topaz signature pad? HOT 1
- Background Image doesnt appear in getData HOT 2
- setData doesnt apply when i resize window
- 调用清空方法报错
- JSignture iOS Devices Black Block
- JSignature Uncaught (in promise) Error: Method enable does not exist on jQuery.jSignature
- The feeling of signing on a tablet with a pen is not as accurate as handwriting
- Base64 to Base30 Conversion HOT 2
- Drawing on top of an image HOT 1
- Undo after updateSetting
- Convert SVG Path to Base30
- copy svg information to form text field HOT 1
- How to change the thickness of the ink? HOT 1
- Touch screen signing broken on Edge/Chrome in Windows 10
- Touch events not working properly in Chrome Version 70.0.3538.77 (Official Build) (64-bit) HOT 1
- Can I convert base64 image string into base30 HOT 8
- Inconsistent Browser Experience
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsignature.