Previous | Next | (P-PDF) Forms & FDF
Topic: Javascript for interactive elements
Conf: (P-PDF) Forms & FDF, Msg: 35263
From: TimGreen
Date: 2/23/2002 12:50 AM
Carl
I would appreciate receiving the sample file you
mentioned in 5. Please email to
tim.green@wmrc.com
Many thanks
On 9/28/1999 8:55:06 AM, orthlieb wrote:
>Sorry that I don't have a lot
>of positive answers here. You
>have to remember that the
>object model in Acrobat is
>very different from the one
>that you might find in the
>browser.
>1) You cannot detect if
>QuickTime is installed using
>JavaScript.
>2) You cannot set up memory
>settings with JavaScript.
>3) You cannot suspend the
>Reader for a certain amount of
>time using JavaScript.
>4) Create a form button. Then
>hide/show the button using the
>display property for the
>button. E.g.
>var f =
>this.getField("MyButton");
> f.display = display.hidden;
>5) Create two buttons. You can
>use the getIcon and setIcon
>methods to exchange the two.
>var f =
>this.getField("MyButton1");
>var g =
>this.getField("MyButton2");
> var h = f.getIcon();
>f.buttonSetIcon(g.buttonGetIco
>n());
> g.buttonSetIcon(h);
>You can also "store" icons at
>the document level using the
>document methods (addIcon(),
>getIcon(), and removeIcon()).
>You can list the document
>icons using the
>getNthIconName() method and
>the numIcons property. All of
>these are undocumented
>features. I have a sample
>document that shows all of
>these features that I'd be
>willing to mail to you.
>6) Not quite sure what you
>mean here. Could you describe
>what you're trying to do in
>more detail?
>7) You can start and stop a
>video clip using the Movie
>actions but not using
>JavaScript.
>8) In the 4.0 release you
>cannot change the focus
>programmatically. This has
>been fixed in 4.05 with a
>setFocus() method for a field
>(no parameters).
>9) There is no way to detect
>the current position of the
>mouse pointer using
>JavaScript.
>Carl 8^)