3 text input elements, 4 ida action codes, 4 ida a – Casio Naurtech CETerm Ver.5.1 Web Browser Programming Manual User Manual

Page 12

Advertising
background image

N

AURTECH

W

EB

B

ROWSER

S

MART

C

LIENTS FOR

W

INDOWS

CE .NET / P

OCKET

PC




Web Browser Programming Guide

Page 12


2.3 T

EXT

I

NPUT

E

LEMENTS

All Web applications will use text input elements at some point to collect
information such as a barcode or count. The standard text input element is the
HTML INPUT such as

<input type="text" name="count" maxlength="10" size="10">


The capabilities of the text input element are different for different Windows CE
platforms. The Windows Mobile platform has the most limited text input. For
example, this input element does not support special event handlers such as
“OnKeyPress”, does not respond to the Tab key to advance the focus, and will
popup the Soft Input Panel (SIP) whenever focus is received by the element.

The Naurtech Web Browser corrects these deficiencies by adding Tab key
support, and by locking down the SIP when desired. We can also provide an
ActiveX control (TextX) which can be used in place of the native input element if
it is essential to trap all keys with an “OnKeyPress” handler. However, with the
unique behavior of the OnKey META tag within native text elements, along with
the Tab key and SIP control, the TextX input control is not usually needed.
Avoiding the TextX input control simplifies the HTML and accelerates application
development. We describe the use of the TextX control in this manual for those
situations where it is required.

Under the Windows CE .NET and CE 5.0 platform, the native text INPUT
element fully supports the OnKeyPress handler as well as other events, and the
TextX control is never needed.

2.4 IDA A

CTION

C

ODES

An IDA Action Code is a special value that is used to invoke a device action,
program action, or emulator action within the Naurtech Smart Client. IDA Action
Codes can invoke special keys under terminal emulation, sound a tone, connect
a session, or show the SIP. There are many IDA codes and these are
documented Appendix 2 in this manual. Almost any action which can be invoked
by a KeyBar or assigned to a hardware key, can be invoked by an IDA code.
Under the Web Browser, IDA codes can be sent to the program in several
different ways. They can be in a special META tag, in an HTML link, or sent via
JavaScript.

Here is a sample which pops up the SIP when a page loads:

<meta http-equiv="IDA" content="IDA_SIP_SHOW">

Advertising