I'm attempting to create an application that requires a user to use a signature pad to verify receipt of an item.
I'm not sure how to integrate a javascript I have and the add page of my form.
I'm using PHPRunner 4.1 release 313
I've created a very basic table with the following fields:
SignatureTable
Date
EmpName - vachar
IssuedBySig - varchar
ReceivedBySig - varchar
Where the fields IssuedBySig and ReceivedBySig are the fields where I want to store the signatures.
Below is the HTML/javascript that i want to integrate into my add page:
<HTML>
<HEAD>
<TITLE>SigPlus Example</TITLE>
<h2><b><font color="blue">Simple Javascript Signature Demo</font></b></h2>
<script LANGUAGE=Javascript>
<!--
function OnClear() {
SigPlus1.ClearTablet(); //Clears the signature, in case of error or mistake
}
function OnCancel() {
SigPlus1.TabletState = 0; //Turns tablet off
}
function OnSign() {
SigPlus1.TabletState = 1; //Turns tablet on
}
function OnSave() {
SigPlus1.TabletState = 0; //Turns tablet off
SigPlus1.SigCompressionMode = 1; //Compresses the signature at a 2.5 to 1 ratio, making it smaller...to display the signature again later, you WILL HAVE TO set the SigCompressionMode of the new SigPlus object = 1, also
alert("The signature you have taken is the following data: " + SigPlus1.SigString);
//The signature is now taken, and you may access it using the SigString property of SigPlus. This SigString is the actual signature, in ASCII format. You may pass this string value like you would any other String. To display the signature again, you simply pass this String back to the SigString property of SigPlus (BE SURE TO SET SigCompressionMode=1 PRIOR TO REASSIGNING THE SigString)
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<DIV STYLE="position:absolute; top:100px; left:50px;">
<table border=1 cellpadding="0">
<tr><td>
<OBJECT classid=clsid:69A40DA3-4D42-11D0-86B0-0000C025864A height=75
id=SigPlus1 name=SigPlus1
style="HEIGHT: 180px; WIDTH: 320px; LEFT: 0px; TOP: 0px;
VIEWASTEXT>
<PARAM NAME="_Version" VALUE="131095">
<PARAM NAME="_ExtentX" VALUE="4842">
<PARAM NAME="_ExtentY" VALUE="1323">
<PARAM NAME="_StockProps" VALUE="0">
</OBJECT>
</td></tr>
</table>
</DIV>
<FORM id=FORM1 method=get name=FORM1>
<p>
<INPUT id=SignBtn name=SignBtn type=button value=Sign onclick=OnSign()>
<INPUT id=button1 name=ClearBtn type=button value=Clear onclick=OnClear()>  
<INPUT id=button2 name=Cancel type=button value=Cancel onclick=OnCancel()>
<INPUT id=submit1 name=Save type=submit value=Save onclick=OnSave()>
</p>
</FORM>
</BODY>
</HTML>
I've searched the forum but with no luck.
You guys have been great at helping me out in the past. Hope you could give me some guidance.
Thanks,