brinley / jSignature

jQuery plugin for adding web signature functionality
http://www.unbolt.net/jSignature
696 stars 529 forks source link

jSignature not working from the server #47

Closed bjhoneycutt closed 10 years ago

bjhoneycutt commented 10 years ago

I created my web application and included jSignature functionality. Everything works great when run from my pc. I published the web app to the server and see the signature section when I open the webpage from my pc, but I don't see the signature section when I open the web page from another pc or from the server. It seems like I must have something installed on my pc that is not installed on the server. Can anyone help?

<div id="divSigns" data-role="fieldcontain" runat="server" style="display:none;">
        <span class="graytitle">Client Signatures</span>
        <ul data-role="listview" data-inset="true">
            <li data-role="fieldcontain">
                <div data-role="fieldcontain" id="divSignClientList">
                    <fieldset data-role="controlgroup" data-type="horizontal">
                        <legend></legend>
                        <asp:RadioButtonList ID="rdLstClients" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal" onclick=" ClearSign();" class="rdLstClients">
                            <asp:ListItem Selected="True">First Signer</asp:ListItem>
                            <asp:ListItem>Second Signer</asp:ListItem>
                            <asp:ListItem>Third Signer</asp:ListItem>
                        </asp:RadioButtonList>
                    </fieldset>
                </div>

                <div data-role="fieldcontain" id="divSignPad" runat="server">
                    <div id="signature">
                    </div>
                    <input id="hfSigBlank" name="hfSigBlank" type="hidden" runat="server" />
                    <div class="ui-grid-b">
                        <div class="ui-block-a">
                            <input type="button" id="btnSaveSign" data-theme="b" value="Save Signature" onclick="return SaveSign();" />
                        </div>
                        <div class="ui-block-c">
                        </div>
                    </div>
                </div>
            </li>
        </ul>
</div>

On other workstations and the server I don't see the block where the signature goes.

brinley commented 10 years ago

What browser are you using? If you are using browser that does not support HTML5 canvas then you will need flash and have flash canvas library included as per the docs. There should not be any other external dependencies.

bjhoneycutt commented 10 years ago

Both workstations and the server are on IE9. The other workstation and the server were in compatibility mode. When I turned that off everything worked great. Thank you for your help!