JavaScript Example Code

Last Updated: 2008-07-28

For AOM related things, check the "Java" folder as well.


 * How to to use document.textSelection - Clay Helberg shows how to to use document.textSelection
 * How to make sure a non-modal JDialog appears on top of the Arbortext window - Keith Berard has a counter measure for JDialogs that want to play hide-and-seek
 * How to get the document in an edit Window, when its menu is clicked? - Tung Fu of PTC gives the answer
 * XSLT transform and XUI injection using JavaScript - Clay Helberg demonstrates how to perform an XSLT transform of an XML document (e.g. a response from a web service) and inject the result in an XUI dialog. This is done using the Java package functionality of Rhino (the JavaScript engine included with Arbortext Editor).
 * How to use a file picker from an XUI dialog? - Clay Helberg shows how
 * Simpler XSLT transform and XUI injection using JavaScript - See XSLT transform and XUI injection using JavaScript; Clay Helberg's copyContents function shouldn't be needed.