How Can I Prompt The User For A Response In A Dialog; How Can I Fetch An Url From Javascript; How Can I Change The Hot-Help Text For A Field Dynamically; How Can I Change The Zoom Factor Programmatically - Adobe 12001196 - Acrobat - Mac Manual

Javascript
Hide thumbs Also See for 12001196 - Acrobat - Mac:
Table of Contents

Advertisement

How can I prompt the user for a response in a dialog?

Use the
containing a question and an entry field for the user to reply to the question. (Optionally,
the dialog can have a title or a default value for the answer to the question.) The return
value is a string containing the user's response. If the user presses the dialog's Cancel
button, the response is the null object.
var dialogTitle = "Please Confirm";
var defaultAnswer = "No.";
var reply = app.response("Did you really mean to type that?",

How can I fetch an URL from JavaScript?

Use the
internet using a GET. If the current document is being viewed inside the browser or Acrobat
Web Capture is not available, it uses the Weblink plug-in to retrieve the requested URL.
How can I change the hot-help text for a field dynamically?
The
string. This property is intended to be used as a short description or hot-help popup
whenever the mouse cursor loiters over a field. It can be a great help to the user if you put
useful suggestions (or descriptive language of some sort) in the

How can I change the zoom factor programmatically?

Use the
set the zoom factor of the current page:
// This zooms in to twice the current zoom level:
this.zoom *= 2;
// This sets the zoom to 73%:
this.zoom = 73;
Note that the value used for the zoom factor is in full percent, so 73% is specified as 73 and
not as 0.73.
Acrobat JavaScript Scripting Guide
defined in the
response
of the
Doc Object
getURL
of the
Field Object
userName
of the
Doc Object
zoom
How can I prompt the user for a response in a dialog?
App Object
class. This method displays a dialog box
dialogTitle, defaultAnswer);
class. This method retrieves the specified URL over the
returns/sets the "tooltip" of the field in question, as a
class. For example, the following code shows two ways to
A Short Acrobat JavaScript FAQ
.
userName
A
87

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acrobat 6.0

Table of Contents