Scripting Guide

1.0 Introduction
The Naurtech CETerm Clients provide a robust and flexible environment for
Terminal Emulation and Web based applications on a mobile device. Our Clients
are available for most Windows CE platforms including CE .NET 4.2, Windows
CE 5.0, Windows CE 6.0, Windows Mobile 2003, Windows Mobile 5, and
Windows Mobile 6.
Device tailored versions of our Clients are available for most industrial terminals.
These versions integrate the peripherals on each device, such as the barcode
scanner, magnetic stripe reader, RFID reader and Bluetooth printer. Naurtech
Scripting features provide additional control of these peripherals and simplify
tasks such as data collection, validation, and automation.
All Naurtech Clients include one or more Terminal Emulations (TE) and a Web
Browser for a natural migration path from legacy text based TE applications to
newer Web based applications. We will refer to the clients collectively as
CETerm, although the scripting features apply fully to the single emulation
products CE3270, CE5250, and CEVT220.
Scripting features can help the transition to web applications and add capabilities
to older TE applications. Newer web based applications can be presented in a
familiar single-purpose (locked down) configuration which uses keys, the touch
screen, or both for user interactions. Please see our “Web Browser
Programming Guide” for detailed information on using the Web Browser features.
The Naurtech Scripting features automate and extend our clients. We use the
industry standard JavaScript language with Microsoft JScript additions.
JavaScript is the language underlying the most capable and complex
functionality available in web applications today. This new class of web
applications is sometimes referred to as “Web 2.0” using Asynchronous
JavaScript and XML (AJAX). CETerm brings this mature and rich language to
the TE user to provide more productive TE applications. Scripting can also
interact with web browser sessions to enrich and extend existing web
applications on the mobile device.
Scripts can be as simple as editing barcode data before sending to a host or as
complex as parsing an external XML document, applying an XSLT transformation
and returning the result to the host through the TE session. CETerm Automation
Objects are provided to give scripts access to the state of CETerm, the TE
session, hardware components, and access to Windows CE operating system
functions such as network, file and registry operations.
This guide is intended to describe the steps for writing and running scripts and
the features provided through the CETerm Automation Objects. Please consult
the standard references for details on JavaScript (or JScript) syntax and XML.