PTC Arbortext Publishing Engine Programmer's Guide (PTC Arbortext Publishing Engine 程式設計師指南) > The Arbortext Publishing Engine Sub-Process > Writing Arbortext PE 應用程式s in JavaScript > Sample JavaScript Arbortext PE 應用程式
  
Sample JavaScript Arbortext PE 應用程式
The sample JavaScript applications are included in Arbortext Publishing Engine installation. These applications are on the server and loaded into an Arbortext PE 子流程 when it starts. The JavaScript sample applications are:
PE_HOME\e3\samples\javascript\E3AppTest.js
PE_HOME\e3\samples\javascript\e3samples2.js
The E3AppTest.js sample is available for testing from the Arbortext Publishing Engine HTML web page (for information, see Monitoring and Reporting Using a Web Browser). It is handled by the Arbortext PE Request Manager, so you don't need to place it in the PE_HOME\custom\init directory. The E3AppTest.js sample application reports information about the Arbortext Publishing Engine environment. Document manipulation, such as opening, closing, and changing content, is accomplished using the AOM and DOM interfaces (refer to the Programmer's Reference). For information on e3samples2.js, see Sample Applications.