ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* JS in widgets still not working with mkiv
@ 2011-02-03  5:15 Reviczky, Adam
  0 siblings, 0 replies; only message in thread
From: Reviczky, Adam @ 2011-02-03  5:15 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 552 bytes --]

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 #2: jsmkii.pdf --]
[-- Type: application/pdf, Size: 24517 bytes --]

[-- Attachment #3: jsmkiv.pdf --]
[-- Type: application/pdf, Size: 7527 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: js.tex --]
[-- Type: text/x-tex; name="js.tex", Size: 563 bytes --]

\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

[-- Attachment #5: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-03  5:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-03  5:15 JS in widgets still not working with mkiv Reviczky, Adam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).