From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/733 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: text field and goto Date: Mon, 23 Aug 1999 16:29:11 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <37C15AB7.F61A5EFE@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 1035391575 26569 80.91.224.250 (23 Oct 2002 16:46:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:46:15 +0000 (UTC) Cc: Context List Original-To: Matthew.Baker@gmd.de Xref: main.gmane.org gmane.comp.tex.context:733 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:733 Matthew Baker wrote: > Is it possible to set up a text field, such that the viewer is taken to a > reference (eg a section) when they press enter (or do something similar)? > I want to set up a text field so that if, for example, the user types 23 > and presses enter, they are taken to a section whose label is section23. > My guess is to call a JavaScript routine, but I don't know how to jump to > a reference from within JavaScript, or if it's possible. grab data -> getField(name) jump to page -> pageNum = value jump to dest -> gotoNamedDest(tag) More details can be found in the javascrip documentation to acrobat. Also take a look at java-ini.tex; it shows how to pass a reference tag or pagenumber. (you can also try to reverse engeneer the cdrom I sent you -) 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 -----------------------------------------------------------------