{"action":"created","issue":{"url":"https://api.github.com/repos/thomasjbradley/signature-pad/issues/167","labels_url":"https://api.github.com/repos/thomasjbradley/signature-pad/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/thomasjbradley/signature-pad/issues/167/comments","events_url":"https://api.github.com/repos/thomasjbradley/signature-pad/issues/167/events","html_url":"https://github.com/thomasjbradley/signature-pad/issues/167","id":114469280,"number":167,"title":"Inside a UpdatePanel","user":{"login":"JKWathen","id":15562766,"avatar_url":"https://avatars.githubusercontent.com/u/15562766?v=3","gravatar_id":"","url":"https://api.github.com/users/JKWathen","html_url":"https://github.com/JKWathen","followers_url":"https://api.github.com/users/JKWathen/followers","following_url":"https://api.github.com/users/JKWathen/following{/other_user}","gists_url":"https://api.github.com/users/JKWathen/gists{/gist_id}","starred_url":"https://api.github.com/users/JKWathen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JKWathen/subscriptions","organizations_url":"https://api.github.com/users/JKWathen/orgs","repos_url":"https://api.github.com/users/JKWathen/repos","events_url":"https://api.github.com/users/JKWathen/events{/privacy}","received_events_url":"https://api.github.com/users/JKWathen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-01T13:23:01Z","updated_at":"2015-11-01T20:42:46Z","closed_at":null,"body":"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?  \r\n\r\nBelow is my ASPX code and I can send you the C# code behind if you need.  \r\n\r\nThanks in advance.\r\n\r\nHere is the code in my ASPX file\r\n\r\n<%@ Page Language=\"C#\" AutoEventWireup=\"true\" CodeFile=\"TestSignature.aspx.cs\" Inherits=\"TestSignature\" %>\r\n\r\n<%@ Register Assembly=\"AjaxControlToolkit\" Namespace=\"AjaxControlToolkit\" TagPrefix=\"asp\" %>\r\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n\r\n\r\n<head>\r\n  <meta charset=\"utf-8\">\r\n  <title>Require a Drawn Signature · Signature Pad</title>\r\n  <style>\r\n    body { font: normal 100.01%/1.375 \"Helvetica Neue\",Helvetica,Arial,sans-serif; }\r\n  </style>\r\n  <link href=\"/SignaturePad/jquery.signaturepad.css\" rel=\"stylesheet\">\r\n  <!--[if lt IE 9]><script src=\"/SignaturePad/flashcanvas.js\"></script><![endif]-->\r\n  <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js\"></script>\r\n</head>\r\n<body>\r\n<form id=\"form2\" runat=\"server\" class=\"sigPad\">\r\n   <asp:ToolkitScriptManager runat=\"server\" EnablePartialRendering=\"true\" ID=\"ScriptManager1\"\r\n        SupportsPartialRendering=\"true\" AsyncPostBackTimeout=\"300000\" CombineScripts=\"false\">\r\n    </asp:ToolkitScriptManager>\r\n        <asp:UpdatePanel ID=\"UpdatePanel1\" runat=\"server\" UpdateMode=\"always\">\r\n        <ContentTemplate>\r\n         \r\n    <p class=\"drawItDesc\">Draw your signature</p>\r\n    <ul class=\"sigNav\">\r\n      <li class=\"drawIt\"><a href=\"#draw-it\" >Draw It</a></li>\r\n      <li class=\"clearButton\"><a href=\"#clear\">Clear</a></li>\r\n    </ul>\r\n    <div class=\"sig sigWrapper\">\r\n     \r\n      <canvas class=\"pad\" width=\"298\" height=\"100\"></canvas>\r\n      <input type=\"hidden\" runat=\"server\" id=\"output\" name =\"output\" class=\"output\"  >\r\n    </div>\r\n    <button type=\"submit\" id=\"submitSig\" runat=\"server\">Save Signature</button>\r\n   </asp:UpdatePanel> \r\n   <asp:Button ID=\"Button1\" runat=\"server\" Text=\"Button\" />\r\n   </ContentTemplate></asp:UpdatePanel> \r\n\r\n  \r\n  </div>\r\n\r\n\r\n  </form>\r\n\r\n  <script src=\"/SignaturePad/jquery.signaturepad.js\"></script>\r\n  <script>\r\n      $(document).ready(function () {\r\n          $('.sigPad').signaturePad({ drawOnly: true });\r\n      });\r\n\r\n\r\n  </script>\r\n  <script src=\"/SignaturePad/json2.min.js\"></script>\r\n</body>\r\n\r\n\r\n\r\n</html>"},"comment":{"url":"https://api.github.com/repos/thomasjbradley/signature-pad/issues/comments/152861768","html_url":"https://github.com/thomasjbradley/signature-pad/issues/167#issuecomment-152861768","issue_url":"https://api.github.com/repos/thomasjbradley/signature-pad/issues/167","id":152861768,"user":{"login":"JKWathen","id":15562766,"avatar_url":"https://avatars.githubusercontent.com/u/15562766?v=3","gravatar_id":"","url":"https://api.github.com/users/JKWathen","html_url":"https://github.com/JKWathen","followers_url":"https://api.github.com/users/JKWathen/followers","following_url":"https://api.github.com/users/JKWathen/following{/other_user}","gists_url":"https://api.github.com/users/JKWathen/gists{/gist_id}","starred_url":"https://api.github.com/users/JKWathen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JKWathen/subscriptions","organizations_url":"https://api.github.com/users/JKWathen/orgs","repos_url":"https://api.github.com/users/JKWathen/repos","events_url":"https://api.github.com/users/JKWathen/events{/privacy}","received_events_url":"https://api.github.com/users/JKWathen/received_events","type":"User","site_admin":false},"created_at":"2015-11-01T20:42:46Z","updated_at":"2015-11-01T20:42:46Z","body":"Hi\r\nThanks 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.\r\nThanks\r\n"}}