ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Reviczky, Adam" <adam.reviczky@kcl.ac.uk>
To: "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: JS in widgets still not working with mkiv
Date: Thu, 3 Feb 2011 05:15:58 +0000	[thread overview]
Message-ID: <7B4626C28B06A7418E938BF73D6DEE18F9E71DB3F3@KCL-MAIL05.kclad.ds.kcl.ac.uk> (raw)

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

                 reply	other threads:[~2011-02-03  5:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7B4626C28B06A7418E938BF73D6DEE18F9E71DB3F3@KCL-MAIL05.kclad.ds.kcl.ac.uk \
    --to=adam.reviczky@kcl.ac.uk \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).