Using Canvas to save Signatures as image using jQuery

Many time, we want to think that how to create a canvas signature in our web site or blog and how we can save that canvas signature. Many times we want to need to the dynamic signature of the client so this article help us.

For more:-

Source code:-
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="capturesignatureswithjQuery.aspx.cs"
    Inherits="capturesignatureswithjQuery" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head runat="server">

    <script type="text/javascript" src=""></script>
    <script src="" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $(".tools a").eq(0).attr("style", "color:#000");
            $(".tools a").click(function () {
                $(".tools a").removeAttr("style");
                $(this).attr("style", "color:#000");
            $("#btnsave").bind("click", function () {
                var base64 = $('#colors_sketch')[0].toDataURL();
                $("#saveimg").attr("src", base64);

    <form id="form1" runat="server">
    <fieldset style="width: 500px;">
        <legend>Canvas to save Signatures as image using jQuery</legend>
        <div class="tools">
            <a href="#colors_sketch" data-tool="marker">Marker</a> <a href="#colors_sketch" data-tool="eraser">
        <br />
        <canvas id="colors_sketch" width="500" height="200">
        <br />
        <br />
        <input type="button" id="btnsave" value="Save as Image" />
        <img id="saveimg" alt="" style="display: none; border: 1px solid #ccc" />


Using Canvas to save Signatures as image using jQuery Using Canvas to save Signatures as image using jQuery Reviewed by NEERAJ SRIVASTAVA on 9:41:00 PM Rating: 5


  1. Excellent Post, I welcome your interest about to post blogs. It will help many of them to update their skills in their interesting field.
    Angularjs training in chennai|Angularjs training chennai

  2. I think this is the interesting topic on technology workshop, because technology is the source people requirement, when people need some idea to work fast when new technology develop.
    Best Angularjs Training in Chennai
    angularjs training center in chennai


Powered by Blogger.