From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/981 Path: main.gmane.org!not-for-mail From: Matthew Baker Newsgroups: gmane.comp.tex.context Subject: Re: Menus from Javascript Date: Wed, 6 Oct 1999 14:20:18 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: References: <37FB44B9.17B2AE83@wxs.nl> Reply-To: Matthew.Baker@gmd.de NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1035391823 28772 80.91.224.250 (23 Oct 2002 16:50:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:50:23 +0000 (UTC) Original-To: Context List In-Reply-To: <37FB44B9.17B2AE83@wxs.nl> Xref: main.gmane.org gmane.comp.tex.context:981 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:981 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 <>/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