Hi Hans, Patrick et al. I really would like to learn about mouseover and other PDF related ConTeXt features (probably JavaScript related). In an older email Hans told Patrick that he'll send him a nondocumented example file - so does this mean that there are no other example files available? Please, if some of you could give me some readable read (as .tex files) examples on how how to work with buttons, mouseovers and other interactive PDF elements like this, I would be very happy! Thank you very much, Steffen
At 20:20 26/03/2004, you wrote:
Hi Hans, Patrick et al.
I really would like to learn about mouseover and other PDF related ConTeXt features (probably JavaScript related).
In an older email Hans told Patrick that he'll send him a nondocumented example file - so does this mean that there are no other example files available?
Please, if some of you could give me some readable read (as .tex files) examples on how how to work with buttons, mouseovers and other interactive PDF elements like this, I would be very happy!
A minimal example: \starttext \setupinteraction[state=start] \startJSpreamble someside used now function inside (txt) { app.alert("inside:"+txt) ; } function outside (txt) { app.alert("outside:"+txt) ; } \stopJSpreamble \setupfield [region] [regionin=JS(inside{here}), regionout=JS(outside{there})] \definefield[whatever][check][region][REGION-A,REGION-B][REGION-A] test: \fitfield[whatever] \definefield[another][check][][{REGION-1,REGION-2,REGION-3},{REGION-P,REGION-Q,REGION-R}][REGION-1] test: \fitfield[another] \stoptext
participants (2)
-
Hans Hagen
-
Steffen Wolfrum