NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: debzidoodle on March 18, 2014, 12:36:22 PM
-
Hi All,
I cannot repro this in an example, which is really frustrating. This is only happening in mobile, desktop it works fine. When I get the to page that has the signature I get the following error:
SyntaxError: JSON.parse: unexpected character
File: jquery.signaturepad.min.js
Line: 26
I have inspected the value of "a" before it gets to "a=JSON.parse(a)" and it has different values for desktop and mobile.
For a signature that is blank, in mobile a has a value of "Y[]" in desktop is has "[]"
The same is true for a filled in signature, it has the preceding Y.
C8
NT 7.37
Any suggestions for what I can do to figure out why I have a preceding Y in mobile?
Thanks,
Debra
-
it's a bug - (I've heard of them before, but never actually seen one in the wild...)
I've attached an updated jquery.mobile.nt-signature.js file.
Copy this (unzipped) into your
\clarion9\accessory\libsrc\win\netweb\web\scripts folder.
then run copyall.bat and gzipall.bat in your app folder.
Let us know if this helps (and obviously I can put it in the 7.38 build.)
[attachment deleted by admin]
-
Thanks Bruce,
Solved one problem, created another. Now my clear button sits on top of my signature, even if I have the clear button turned off. No javascript errors though, and the form saves now. So its just the clear button issue now. Attached is a pic.
Thanks,
Debra
[attachment deleted by admin]
-
fixed in attached - same process as before to update it on your side;
[attachment deleted by admin]
-
Hi Bruce,
Sorry for the delay, I tried that second script (doing the copy to clarion, run copyall,gzipall) and I still have a button sitting in my signature box. Does it matter if I am using NT 7 or NT 8 with that script?
Thanks,
Debra
-
bump
-
I've uploaded a 7.38 build with the fix - and it'll also be in 8.04
cheers
Bruce
-
Thank you so much!!