From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/982 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Menus from Javascript Date: Wed, 06 Oct 1999 13:46:49 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <37FB44B9.17B2AE83@wxs.nl> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035391824 28780 80.91.224.250 (23 Oct 2002 16:50:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:50:24 +0000 (UTC) Cc: Context List Original-To: Matthew.Baker@gmd.de Xref: main.gmane.org gmane.comp.tex.context:982 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:982 Matthew Baker wrote: > > Yes, AcroJs.pdf. This one is: > > > > app.fullscreen = true ; > > So, to use openaction or closeaction I would do something like > > \setupinteraction[state=start,openaction={JS(app.fullscreen = true;)}] > > ? > > This doesn't seem to work. No. \startJScode{fullscreen} app.fullscreen = true ; \stopJScode \setupinteraction[..,openaction=JS(fullscreen)] (or, openaction=,{JS(fullscreen),lastpage,firstpage,CloseDocument}] Alternatively: \startJSpreamble {whatever} used now function FullScreen { app.fullscreen = true } \stopJSpreamble ... openaction=JS(FullScreen)] This saves bytes when one uses a function more than once. So, it comes down to separate the JS code from the reference; than way one can more easy replace the implementaion by for instance by PERL code in a dviviewer than has an interface to perl (Wasn't gilbert working on that?) or a real Java plugin in the reader (Matthew's next challenge). Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl -----------------------------------------------------------------