PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WEBDEV 2024 → javascript
javascript
Iniciado por Rob BERRY ( R&J Cont, 22,jun. 2011 18:32 - No hay respuesta
Miembro registrado
1 mensaje
Publicado el 22,junio 2011 - 18:32
Hi,
I am trying to add the javascript code located at
http://thomasjbradley.ca/lab/signature-pad…
I have it so I can do the signature and see the output JSON data. I can also pass it to a page to recreate the signature. My problem is that although I can see the data passed it is NOT being passed to the javascript code to regenerate the signature I have a the following html in a html control on a page:

<div class="sigPad signed">
<div class="sigWrapper">
<canvas class="pad" width="200" height="55"></canvas>
<input name="sig" id="sig" type="hidden">
</div>
</div>

I see the box on the screen but no image inside. firefox tools shows that the data is not being passed to the javascript routine in the extra file list. this is the routine for recreate the signature:

$(document).ready(function(){
$('.sigPad').signaturePad({displayOnly:true}).regenerate(sig)
})

Any help would be great, I have spent 3 days working on getting the data to the routine with no luck. Thanks!
-Rob Berry