Re: [NTG-context] Widgets: Any good examples for developing JS-enabled PDFs that calculate?

2019-11-19 Thread Paul Mazaitis
On 18 Nov 2019, at 3:48, Hans Hagen wrote: Here's something to play with ... note the Number conversion! A ha! Many thanks (for some reason I didn't get this email until just now); I'll try to tackle it this way and see what I can make work. \usemodule[fields] \starttext [...]

Re: [NTG-context] Widgets: Any good examples for developing JS-enabled PDFs that calculate?

2019-11-19 Thread Paul Mazaitis
Some further progress! On 18 Nov 2019, at 13:56, Hans Hagen wrote: the problem with calculate is that there are also settings related to it (plus some built-in addition stuff, at least that's what i see in the viewer preferences and such, which is likely to interfere) From what I've been

Re: [NTG-context] Widgets: Any good examples for developing JS-enabled PDFs that calculate?

2019-11-18 Thread Henning Hraban Ramm
Hi, I didn’t check your example, but I remember that JScode did only work if there’s also a JSpreamble. Also the "used now" keyword (see Hans’ message) is essential. HTH. Sorry, no time for further investigation. Hraban > Am 2019-11-17 um 21:13 schrieb Paul Mazaitis : > > > Hi everyone, > >

Re: [NTG-context] Widgets: Any good examples for developing JS-enabled PDFs that calculate?

2019-11-18 Thread Hans Hagen
On 11/17/2019 9:13 PM, Paul Mazaitis wrote: Hi everyone, First: apologies for the long email; this got a little complicated. Summary: there may be a bug in setting up calculate field for widgets? it's more that javascript in pdf is kind of unreliable and can interfere in all kind of ways

Re: [NTG-context] Widgets: Any good examples for developing JS-enabled PDFs that calculate?

2019-11-17 Thread Paul Mazaitis
Hi everyone, First: apologies for the long email; this got a little complicated. Summary: there may be a bug in setting up calculate field for widgets? Parts: - calculator.tex - A M(N)WE - The MWE Only Sort of Works # calculator.tex On 13 Nov 2019, at 10:26, Pablo Rodriguez wrote: Hi

Re: [NTG-context] [Widgets] Any good examples for developing JS-enabled PDFs that calculate?

2019-11-13 Thread Pablo Rodriguez
On 11/7/19 8:28 PM, Paul Mazaitis wrote: > > Hi everyone, > > My goal is to have a PDF that > > - allows users to input numeric information in various fields, > - makes calculations on the data in those fields, > - ...and reports that information somewhere in the PDF. > > It seems that the

[NTG-context] [Widgets] Any good examples for developing JS-enabled PDFs that calculate?

2019-11-07 Thread Paul Mazaitis
Hi everyone, My goal is to have a PDF that - allows users to input numeric information in various fields, - makes calculations on the data in those fields, - ...and reports that information somewhere in the PDF. It seems that the widget support could handle this, but I'm struggling to