From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/501 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Why? Date: Fri, 04 Jun 1999 00:48:35 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <37570643.99033CD1@wxs.nl> References: <3.0.5.32.19990603132035.00a6b100@mail.northcoast.com> 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 1035391355 24530 80.91.224.250 (23 Oct 2002 16:42:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:42:35 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: David Arnold Xref: main.gmane.org gmane.comp.tex.context:501 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:501 David Arnold wrote: > \setupinteraction [state=start] > \setupcolors [state=start] > > \starttext > \goto{forget everything and exit}[JS(Forget_Changes),CloseDocument] > \stoptext > > I am totally curious. Why doesn't the second one work? Got you. Forget_Changes only makes sense when you use fields. These js scripts are collected in java-fld.tex. They are loaded as soon as the first field is typeset. You can force loading by: \useJSscripts[fld] (One day I will extend the JS part, more neutral. It already is able to filter functions and thereby limiting the number of definitions needed.) 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 -----------------------------------------------------------------