From: Matthew Baker <Matthew.Baker@gmd.de>
Subject: Re: Menus from Javascript
Date: Wed, 6 Oct 1999 14:20:18 +0200 [thread overview]
Message-ID: <Pine.SGI.4.04.9910061411080.74118-100000@urizen> (raw)
In-Reply-To: <37FB44B9.17B2AE83@wxs.nl>
On Wed, 6 Oct 1999, Hans Hagen wrote:
> \startJScode{fullscreen}
> app.fullscreen = true ;
> \stopJScode
>
> \setupinteraction[..,openaction=JS(fullscreen)]
>
> (or, openaction=,{JS(fullscreen),lastpage,firstpage,CloseDocument}]
Hmm. My JavaScript seems to work, but not as an openaction (it works, for
example, when I call it from a \button). My code is
\setupoutput[pdftex]\pdfcompresslevel=0
\startJScode{fullscreen}
app.fullscreen = true ;
\stopJScode
\setupinteraction[state=start,openaction=JS(fullscreen)]
\starttext
\section[sec1]{section 1}
Hello
\stoptext
I have the following in the PDF file
/Type /Catalog
/Pages 8 0 R
/Names 19 0 R
/OpenAction <</S /JavaScript /JS ( app.fullscreen= true ; )>>/PageMode /UseNone
>> endobj
Is the /PageMode /UseNone getting in the way?
closeaction is also not working for me (I am trying to do a
app.fullscreen=false so that subsequent documents don't open up full
screen). Are the closeactions done before or after closing the
document?
- Matt
--
Dr. Matthew Baker matthew.baker@gmd.de
GMD - FIT.MMK http://fit.gmd.de/hci/pages/matthew.baker.html
next prev parent reply other threads:[~1999-10-06 12:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-06 9:12 Matthew Baker
1999-10-06 11:21 ` Hans Hagen
1999-10-06 10:58 ` Matthew Baker
1999-10-06 12:46 ` Hans Hagen
1999-10-06 12:20 ` Matthew Baker [this message]
1999-10-06 16:11 ` Hans Hagen
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=Pine.SGI.4.04.9910061411080.74118-100000@urizen \
--to=matthew.baker@gmd.de \
/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).