thread-pond / signature-pad

A jQuery plugin for assisting in the creation of an HTML5 canvas based signature pad. Records the drawn signature in JSON for later regeneration.
BSD 3-Clause "New" or "Revised" License
727 stars 292 forks source link

Inside a UpdatePanel #167

Open JKWathen opened 8 years ago

JKWathen commented 8 years ago

Thanks for the great control. I am using this in a ASP.NET application and have it inside an update panel. If the user clicks a button inside the update panel, not related to the signature-pad, the signature-pad no longer works and the signature box is gone. It does not the same thing if I click the submit button. I have gotten it to work perfectly outside of the update panel. Any idea what I need to do to fix this?

Below is my ASPX code and I can send you the C# code behind if you need.

Thanks in advance.

Here is the code in my ASPX file

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestSignature.aspx.cs" Inherits="TestSignature" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Require a Drawn Signature · Signature Pad

Draw your signature

thomasjbradley commented 8 years ago

Sorry to say but I have no experience with ASP.NET. What's the UpdatePanel doing exactly?

JKWathen commented 8 years ago

Hi Thanks for getting back to me so quick on this. I have it inside an ajax update panel that when I click on any button that posts back it acts like it is not refreshed or displayed at all. I am not sure if maybe initially there is a function that gets called to display it that is not called subsequently when inside an update panel. Thanks

thomasjbradley commented 8 years ago

Possibly. Can your code detect when the UpdatePanel is re-triggered and maybe re-execute the signaturepad setup?

JKWathen commented 8 years ago

Possibly, what do I need to call for the signaturepad setup?

Date: Sun, 1 Nov 2015 18:38:47 -0800 From: notifications@github.com To: signature-pad@noreply.github.com CC: kylewathen@hotmail.com Subject: Re: [signature-pad] Inside a UpdatePanel (#167)

Possibly. Can your code detect when the UpdatePanel is re-triggered and maybe re-execute the signaturepad setup?

— Reply to this email directly or view it on GitHub.

thomasjbradley commented 8 years ago

I'm thinking the .signaturePad() function.