Dear Hans

Everything I use around widgets works now, except JavaScript.

Please find attached a minimal example (js.tex).
I don't see any errors running mkiv and the PDF is generated, but when I enter 
for example "\'a" into the field I am expecting to get "รก" (as you can see with 
mkii), but it just inserts the keys I pressed, eg. "\'a".

I've attached two PDF's, one made with mkii and one with mkiv. The input with 
the mkii PDF works as expected, the mkiv PDF does not work like expected.
Can you have a look at this?

Best wishes
Adam

Attachment: jsmkii.pdf
Description: jsmkii.pdf

Attachment: jsmkiv.pdf
Description: jsmkiv.pdf

\setupinteraction[state=start]

\starttext

\setupfield
[ShortLine]
[label,frame,horizontal]
[offset=4pt,height=fit,framecolor=green,background=screen,backgroundscreen=.80]
[height=18pt,width=80pt,align=middle,background=screen,backgroundscreen=.90,frame=off]
[height=18pt,width=80pt,color=red,align=right,style=type,background=screen,backgroundscreen=.90,frame=off,regionin=JS(Initialize_TeX_Key),afterkey=JS(Convert_TeX_Key),validate=JS(Convert_TeX_String)]

\definefield [Email] [line] [ShortLine] [] [pragma at wxs.nl]

\field [Email] [your email]

\stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to