NetTalk Central

Author Topic: Mobile mode Signature - SyntaxError: JSON.parse: unexpected character  (Read 4017 times)

debzidoodle

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
    • Email
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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Mobile mode Signature - SyntaxError: JSON.parse: unexpected character
« Reply #1 on: March 18, 2014, 10:33:19 PM »
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]

debzidoodle

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
    • Email
Re: Mobile mode Signature - SyntaxError: JSON.parse: unexpected character
« Reply #2 on: March 19, 2014, 06:31:47 AM »
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]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Mobile mode Signature - SyntaxError: JSON.parse: unexpected character
« Reply #3 on: March 19, 2014, 11:39:18 PM »
fixed in attached - same process as before to update it on your side;



[attachment deleted by admin]

debzidoodle

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
    • Email
Re: Mobile mode Signature - SyntaxError: JSON.parse: unexpected character
« Reply #4 on: March 22, 2014, 03:10:54 PM »
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

debzidoodle

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
    • Email
Re: Mobile mode Signature - SyntaxError: JSON.parse: unexpected character
« Reply #5 on: March 25, 2014, 07:41:13 AM »
bump

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Mobile mode Signature - SyntaxError: JSON.parse: unexpected character
« Reply #6 on: March 26, 2014, 02:44:58 AM »
I've uploaded a 7.38 build with the fix - and it'll also be in 8.04

cheers
Bruce

debzidoodle

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
    • Email
Re: Mobile mode Signature - SyntaxError: JSON.parse: unexpected character
« Reply #7 on: March 26, 2014, 07:18:24 AM »
Thank you so much!!