From: Hans Hagen <pragma@wxs.nl>
Cc: Context List <ntg-context@ntg.nl>
Subject: Re: text field and goto
Date: Mon, 23 Aug 1999 16:29:11 +0200 [thread overview]
Message-ID: <37C15AB7.F61A5EFE@wxs.nl> (raw)
In-Reply-To: <Pine.SGI.4.04.9908231408330.182369-100000@urizen>
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
-----------------------------------------------------------------
prev parent reply other threads:[~1999-08-23 14:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-23 12:13 Matthew Baker
1999-08-23 14:29 ` Hans Hagen [this message]
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=37C15AB7.F61A5EFE@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/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).