jQuery validation with custom method
Posted: Wed Jun 23, 2010 1:06 am
I am using an object (to get digital signature on my web form)
On SUBMIT button a function is called to fill a hidden control with the text value from above object.
If the object is not used (ie left blank) it output this text value:
FFFFFFFFF588410405000000040000008CA64DE9C1B123A78CA64DE9C1B123A78CA64DE9C1B123A78CA64DE9C1B123A78CA64DE9C1B123A7
How can I make a custom method for jQuery Validation plugin to make the signature object mandatory 
Please HELP!
Code: Select all
<OBJECT classid=clsid:69A40DA3-4D42-11D0-86B0-0000C025864A id=SigPlus1 name=SigPlus1 VIEWASTEXT>
<PARAM NAME="_Version" VALUE="131095">
<PARAM NAME="_ExtentX" VALUE="6950">
<PARAM NAME="_ExtentY" VALUE="1323">
<PARAM NAME="_StockProps" VALUE="0">
</OBJECT>
Code: Select all
onclick="setSig"Code: Select all
<input type="hidden" name="SigData" id="SigData" />Code: Select all
function setSig() {
SigPlus1.TabletState=0;
SigPlus1.EncryptionMode=1;
SigPlus1.SigCompressionMode=2;
document.FormName.SigData.value=SigPlus1.SigString;
}
FFFFFFFFF588410405000000040000008CA64DE9C1B123A78CA64DE9C1B123A78CA64DE9C1B123A78CA64DE9C1B123A78CA64DE9C1B123A7
Please HELP!