THE JAVASCRIPT EDITOR


Actions in Acrobat are handled using Adobe's own version of JavaScript. You can attach scripts to buttons or other form objects using the Run a JavaScript option in the Actions tab when editing these objects' Preferences. Keep in mind that the Adobe Reader doesn't support custom JavaScript, so if you intend your form to be filled using the Adobe Reader, you should avoid using custom scripts.

Another way to use JavaScript is by choosing Advanced, JavaScript, Document Actions. Document Actions are basic states that Acrobat watches to trigger JavaScripts. You can use a JavaScript pop-up, for example, to thank your customers for filling out a survey form when they close it (see Figure 44.23).

Figure 44.23. You can add JavaScripts to your document easily using Document Actions.


To learn more about Adobe JavaScript you can visit the JavaScript reference page in the Adobe website at http://partners.adobe.com/public/developer/pdf/topic_js.html.




Special Edition Using Adobe Creative Suite 2
Special Edition Using Adobe Creative Suite 2
ISBN: 0789733676
EAN: 2147483647
Year: 2005
Pages: 426
Authors: Michael Smick

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net