Greetings!
I have a real good one here for everyone to chew on:
I want to be able to access the text (sometimes //Comments or maybe even JavaScript or FormCalc statements) that are entered in the Script Editor and stored in a specific event.
I want to access this text from a script object or another field on the same form.
Anyone have an idea of what the JavaScript or FormCalc code would be to do that?
Please feel free to ask questions if needed.
Thanks in advance,
Rick Kuhlmann
xfa.form.form1.resolveNode("$..Reset.#event.script").value;
If I wanted to get all event scripts in the form:
xfa.form.resolveNodes("$..#event.script");
This code returns a node collection.
You should read both the XML SOM reference and the XML Form Object Reference:
http://partners.adobe.com/public/developer/xml/topic.php
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script