Intermec 730 User Manual page 72

Intermec 730: user guide
Hide thumbs Also See for 730:
Table of Contents

Advertisement

iBrowse User's Guide
Example
Create two edit controls and trap the TAB key to set focus to the next edit
control.
<HTML>
<HEAD></HEAD>
<BODY>
EditBox1 <OBJECT ID="IBEAX1" CLASSID="CLSID:D8A6AACE-0F02-
4440-8F07-64CF68F33DE9" WIDTH="50" HEIGHT="25">
EditBox2 <OBJECT ID="IBEAX2" CLASSID="CLSID:D8A6AACE-0F02-
4440-8F07-64CF68F33DE9" WIDTH="50" HEIGHT="25">
</BODY>
<SCRIPT LANGUAGE="JSCRIPT" FOR="IBEAX1"
EVENT="OnKeyPress()">
if (key == 9)
{
IBEAX2.SetFocus(1);
Return -1;
back to the control
}
return 0;
// pass the key value along a
</SCRIPT>
<SCRIPT LANGUAGE="JSCRIPT" FOR="IBEAX2"
EVENT="OnKeyPress()">
if (key == 9)
{
IBEAX1.SetFocus(1);
Return -1;
back to the control
}
return 0;
// pass the key value along a
</SCRIPT>
</HTML>
// set focus to the second control
// no need to pass the key
// set focus to the first control
// no need to pass the key
71

Advertisement

Table of Contents
loading

Table of Contents