NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alberto on September 09, 2017, 07:56:50 AM

Title: Problem with NT10 and my Calendar
Post by: Alberto on September 09, 2017, 07:56:50 AM
Hi,
When trying to run my calendar compiled with NT10, I get a js error that does not happens in NT9.
Please see image
Anything I can do?
Thanks

PS Attached goes an example.
Title: Re: Problem with NT10 and my Calendar
Post by: Alberto on September 09, 2017, 09:52:14 AM
jFiles is the culprit...

Version 1.51 (1 September 2017)
Add: MaxPrefixLengthInJSON property. This sets the cut-off length for removing prefixes, from the incoming JSON, when removePrefix is on. The default value is 4 (which includes the separator.)

This "add" makes that all my json objects now include the prefix.

I had to add:

    json.RemovePrefix=1
    json.MaxPrefixLengthInJSON=100

for it to work like the last version.

Regards
Title: Re: Problem with NT10 and my Calendar
Post by: Bruce on September 10, 2017, 10:35:21 PM
yes, if you use prefix chars longer than 3 chars, then you will need to set the prefix length up.

cheers
Bruce