freshgrill
asked on
Javascript and signaturepad
Trying to get web page to regenerate a signature pad signature (http://thomasjbradley.ca/lab/signature-pad/regenerate/) , getting the error:
Uncaught TypeError: Cannot read property 'getContext' of undefined
Full html page attached
problem.html
Uncaught TypeError: Cannot read property 'getContext' of undefined
Full html page attached
problem.html
Can you please upload this to your server and post the link. Chances are you just have a something missing.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I am still getting the same issue, it "writes" out whatever the name in <div class="typed">Mickey Mouse</div> instead of recreating the signature assigned to "var sig"
Am I still missing something?
Thanks,
output1.png
output2.png
Am I still missing something?
Thanks,
output1.png
output2.png
Your table did not validate. I made a simple table and it worked http://jsbin.com/aridej/4/edit It is important with js to make sure everything is valid or it gets messed up.
,{"lx":106,"ly":18,"mx":106,"my":20},{"lx":107,"ly":17,"mx":106,"my":18},{"lx":107,"ly":15,"mx":107,"my":17},{"lx":107,"ly":14,"mx":107,"my":15},{"lx":108,"ly":14,"mx":107,"my":14},{"lx":108,"ly":15,"mx":108,"my":14},{"lx":109,"ly":17,"mx":108,"my":15},{"lx":109,"ly":19,"mx":109,"my":17},{"lx":109,"ly":20,"mx":109,"my":19},{"lx":110,"ly":24,"mx":109,"my":20},{"lx":111,"ly":27,"mx":110,"my":24},{"lx":111,"ly":30,"mx":111,"my":27},{"lx":112,"ly":32,"mx":111,"my":30},{"lx":114,"ly":32,"mx":112,"my":32},{"lx":115,"ly":32,"mx":114,"my":32},{"lx":117,"ly":31,"mx":115,"my":32},{"lx":117,"ly":30,"mx":117,"my":31},{"lx":118,"ly":28,"mx":117,"my":30},{"lx":119,"ly":26,"mx":118,"my":28},{"lx":120,"ly":26,"mx":119,"my":26},{"lx":122,"ly":26,"mx":120,"my":26},{"lx":124,"ly":27,"mx":122,"my":26},{"lx":125,"ly":27,"mx":124,"my":27},{"lx":126,"ly":28,"mx":125,"my":27},{"lx":128,"ly":29,"mx":126,"my":28},{"lx":129,"ly":30,"mx":128,"my":29}