Page 2 - Copyright Notice; CETerm; Software Version
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 2 Copyright Notice This document may not be reproduced in full, in part or in any form, without prior written permission of Naurtech Corporation. Naurtech Corporation makes no warranties with...
Page 3 - Table of Contents
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 3 Table of Contents Copyright Notice .............................................................................................................................. 2 Trademarks..................
Page 5 - Preface; Naurtech Corporation; Assumptions; Microsoft Windows user interface metaphor and terminology.; Conventions used in this Manual; This manual uses the following typographical conventions:; represents new version specific information
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 5 Preface All of us at Naurtech Corporation constantly strive to deliver the highest quality products and services to our customers. We are always looking for ways to improve our solutions. I...
Page 6 - Additional Documentation; Support
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 6 <meta http-equiv="ScannerNavigate" Content="Javascript:onscan('%s','%s','%s','%s','%s');"> </head> … </html> Additional Documentation The Naurtech Web Brow...
Page 7 - Access controls allow administrators
1.0 Introduction The Naurtech Web Browser provides a robust and flexible environment for Web based applications which are accessed from a mobile device. This browser is available for Windows CE .NET, Windows CE 5.0, Windows Mobile 2003 and Windows Mobile 5.0 based devices. Device tailored versions o...
Page 9 - Notification Features.; Custom context menus can be defined to provide access
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 9 • Notification Features. Sound (.wav) files, tone generators (beepers), and vibrators can all be activated on devices which have these capabilities • Context Menus. Custom context menus can...
Page 11 - EY
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 11 function onscan(data, source, type, time, length) { if (length > 5) { document.form[0].barcode.value = data; document.form[0].submit(); } } <\script> 2.2 K EY A CTIONS In many sit...
Page 12 - EXT
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 IN...
Page 13 - EVICE
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 13 Or, you can toggle the SIP visibility from a link: <a href="ida:IDA_SIP_TOGGLEHIDE">Toggle Soft Input Panel (SIP)</a> Or, you can perform the action from JavaScript by ...
Page 15 - CET; ERM
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 15 Note that we do not require the CEBrowseX object under Windows CE because we have direct access via the builtin “external” object. 2.6 D EVICE P ROPERTIES AND CET ERM C ONFIGURATION The CE...
Page 17 - Special HTML META Tags; Identifier Description
3.0 Special HTML META Tags This section describes the special META tags (or elements) that are recognized by the Naurtech Web Browser and are used to convey special instructions to the browser. The META tags use the standard HTML format but are not recognized by standard browsers. These special META...
Page 18 - PPLICATION; Syntax
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 18 Identifier Description SetTime Set the system time Signal Display on-screen WLAN (RF) signal information SignalNavigate JavaScript or URL invoked with WLAN information SIP Control the SIP ...
Page 19 - ATTERY
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 19 <head> <meta http-equiv="Application" content="Quit"> </head> <body> This message should not be visible. </body> </html> 3.2 B ATTERY Th...
Page 20 - Example
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 20 specify the update interval and a notification when the strength falls below a designated level. Example <html> <head> <meta http-equiv="Battery" content="Show...
Page 21 - OMMAND
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 21 <head> <meta http-equiv="BatteryNavigate" content="javascript:OnBattery(%s, %s, %s, %s);"> </head> <body> <script language=javascript> functio...
Page 22 - URSOR; RROR
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 22 3.5 C URSOR P OS The CursorPos tag is used to reposition the “busy-cursor” when it is visible. The busy cursor may appear while waiting for pages to load. Use CursorPos to move the busy-cu...
Page 23 - Comments; NIT
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 23 Comments This tag should be the first special META tag defined on the page, but not before any JavaScript methods that may be invoked by the content. If this tag is not specified, errors a...
Page 24 - OME
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 24 </head> <body> This page reports unit information. ... <script language=javascript> function ReportInfo(serial, uuid, version) { alert( "Serial Number=" + serial ...
Page 25 - OVE; SIP
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 25 Syntax http-equiv="IDA" content="IDA_symbolicname" Comments This tag offers rich functionality. It is used primarily when an action is needed upon loading a page. Alternati...
Page 26 - Use MoveSIP to move the default SIP location.; WARNING; LL
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 26 Use MoveSIP to move the default SIP location. WARNING : MoveSIP may move the SIP to a non-visible location. Usually, entering the CETerm configuration dialogs will temporarily restore the ...
Page 28 - not; assign OnKey actions to the CTRL,
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 28 format yields HTML that is easier to read and maintain. See OnAllKeys to direct all key input to a single action. Although most VK codes are uniform across devices, some devices can remap ...
Page 29 - OWER
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 29 <body> Main Menu<br> 4. Cycle Count<br> 5. Inventory<br> 6. Receiving<br> Select an action:<br> Press ‘A’ to check version.<br> ... <form name=...
Page 30 - EBOOT; CANNER
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 30 3.14 R EBOOT The Reboot tag will invoke a warm (soft) or cold (hard) reset of the device. WARNING: Do not perform the cold reset unless you are prepared to lose all current settings, data,...
Page 33 - ATE; IME
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 33 alert("Form full, scan discarded."); } } </script> </form> </body> </html> 3.17 S ET D ATE The SetDate tag is used to set the current system date on the han...
Page 34 - IGNAL
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 34 Comments If the time format is invalid, this tag is ignored. Example <html> <head> <meta http-equiv="SetTime" content="12:01"> </head> <body> ...
Page 38 - and; See example under TimerNavigate.; IMER
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 38 "Larger" "Largest" Comments The TextSize tag is somewhat misnamed. Relative text sizes are determined by the HTML content. TextSize applies an overall zoom factor to the si...
Page 39 - PLS
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 39 Syntax http-equiv="TimerNavigate" content="javascript:OnTimer('%s');" <!- or -> content="/timer.htm?time=%s" Where the “%s” is replaced with the current time ...
Page 42 - URL; ONTROLLING THE
4.0 Advanced Topics In this chapter, we discuss several common, but advanced, topics for creating robust Web based applications. We discuss how to overcome some limitations of the Pocket IE browser behavior. 4.1 N AVIGATING TO P RE - CONFIGURED URL S The Naurtech Web Browser allows you to configure ...
Page 44 - NPUT
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 44 } </script> 4.3 I NPUT F OCUS AND THE T AB K EY One of the first limitations you are likely to notice about Pocket Internet Explorer is that the Tab key does not always move the inpu...
Page 48 - ESSION
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 48 // Focus has moved, cancel the event return -1; } // Just return the same key return 0; } </script> </body> </html> 4.4 S ESSION L AUNCHER One interesting use of the Web ...
Page 49 - OW TO
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 49 sendida( "IDA_SESSION_S4", 0 ); } function startsession(id) { if (id >= 1 && id <=4) { // Switch to session sendida("IDA_SESSION_S" + id, 0); // Connect if no...
Page 51 - Name Values; Print directly to port
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 51 On the text INPUT element we support the “stiscan” and “stisubmit” attributes. If present, the stiscan attribute controls which symbologies may be inserted into the input element. If no va...
Page 53 - Printing from HTML; META T
5.0 Printing from HTML There are numerous ways to print from the Naurtech Web Browser. Once a printer is configured, print content may be specified via a special META tag, the CEBrowseX or “external” objects, the custom PRINT tag, or with any ActiveX control designed to print from a browser. The Nau...
Page 54 - CTIVE; X P; RINTING; CEBrowseX Control; YNTAX
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 54 5.4 A CTIVE X P RINTING C ONTROLS There are numerous ActiveX controls available to send print content to a printer. These are available from handheld manufacturers, printer manufacturers, ...
Page 55 - LASS; ID; ETHODS; Method Action
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 55 C LASS ID The CEBrowseX CLASSID is: CLASSID="clsid:D14943BD-4900-453E-8582-725F21A57E0C" M ETHODS The following methods are available. Note that most are marked as deprecated (DEP)...
Page 57 - ROPERTIES; Property Description; VENT
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 57 PlayTone( volume, frequency, duration ) PlayTone will play a tone if supported by the handheld hardware. PlayTone is not available on the CEBrowseX object (see PlaySound). volume – is the ...
Page 59 - The TextX CLASSID is:; Two methods are available on the TextX object.
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 59 <PARAM NAME=FONTUNDERLINE VALUE="false"> <PARAM NAME=FONTWEIGHT VALUE="400"> <PARAM NAME=MAXLENGTH VALUE=20 > <PARAM NAME=NUMBERONLY VALUE="false...
Page 60 - Property Description Values
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 60 objectname.SetFocus( select ) SetFocus will set the current focus to this TextX object. If select is true, then all of the text in the control will be selected. objectname.ShowSIP( visible...
Page 61 - void
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 61 Some font properties may conflict or may not yield visible differences on all devices. FontBold is equivalent to FontWeight=700. Specifying a font name will override some other attributes....
Page 62 - int
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 62 may also be called when keys are simulated within the Web Browser via KeyBar buttons or remapped physical keys. int OnKeyPress( int akey ) The OnKeyPress handler is called when a key is pr...
Page 63 - Appendix 1 - Properties; Property Name
Appendix 1 - Properties The properties listed in this appendix may be accessed via the GetProperty and SetProperty methods on the CEBrowseX ActiveX control or via the DOM “external” object under Windows CE .NET or 5.0. Properties marked (RO) are read-only and may not be set with SetProperty. ALERT: ...
Page 64 - TE session port
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 64 Property Name Description Session Properties session.connection.host Session host (or home URL) session.connection.port TE session port session.connection.type Session type 3270, 5250, VT2...
Page 65 - Appendix 2 - IDA Action Codes; Symbolic Name; Tab; Printable ASCII
Appendix 2 - IDA Action Codes Many IDA codes apply only to a Terminal Emulation session but are listed here for completeness. Some IDA codes can only be used in restricted circumstances, such as IDA_URL. Symbolic Name Friendly Name Description IDA_BEL Bell IDA_BS Backspace IDA_HT Horizontal Tab IDA_...
Page 74 - Appendix 3 - Virtual Key Codes; Symbolic Name Hexadecimal
Appendix 3 - Virtual Key Codes This appendix contains a list of Windows CE Virtual Key Codes (VK) which are used with the OnKey META tag. Notice that there is no case distinction of the alphabetic keys. Also, note that the symbols on the tops of the digit keys are not listed because they are a shift...
Page 78 - Glossary; external
Glossary CEBrowseX A Naurtech ActiveX control which provides access to the Naurtech Web Browser configuration and actions. external This is the name of an implied object in the DOM of the Windows CE .NET and CE 5.0 browser that gives access to special non-standard features. See the CEBrowseX documen...
Page 79 - Index; META Tag Identifiers
N AURTECH W EB B ROWSER S MART C LIENTS FOR W INDOWS CE .NET / P OCKET PC Web Browser Programming Guide Page 79 Index C CEBrowseX CLASSID · 53 CEBrowseX Control · 53 E external object · 53 G GetProperty · 54, 62 H hidden fields · 45 I iBrowse META tags · 16 IDA Action Codes · 11, 63 M META Tag Ident...