The text of a manual · part 4 of 14
Data Collection Browser Client User's Guide: Chapter 2 - Developing and Testing Your Application, pages 19 to 27
Pages 19 to 27 of 107, from Data Collection Browser Client User's Guide
The original document is the PDF (897 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec 6400
Page 19
2 Developing and Testing Your Application
Page 20
blank
2-2
Page 21
Developing and Testing Your Application
2
This chapter provides a list of the HTML features that are supported, the features that are not supported, and additional information about some of the tag attributes. It also provides a summary of the HTML tags and how dcBrowser supports them and a sample HTML file.
About the Development Environment dcBrowser provides a runtime environment for data collection devices. For more information about the development environment, see Chapter 1, “Getting Started.” Note: Compile your CGI scripts for whatever environment your Web server uses. If you want to put your CGI scripts and your Web pages on the DCS 30X, you must compile your CGI scripts for OS/2. You can put your CGI executables into the D:\USERDATA\CGI-BIN directory, and you can put your Web pages into the D:\USERDATA\HTDOCS directory on the DCS 30X. Once you have moved your Web pages, you must add /user to the URL of the Web page. For example, if you moved RFSIGN.HTM to the D:\USERDATA\HTDOCS directory, the URL would be /user/rfsign.htm. Also, if you wanted RFSIGN.HTM to use a CGI executable in the D:\USERDATA\CGI-BIN directory, you would need to change the following code: <FORM METHOD=POST ACTION=“/cgi-bin/cgi.exe”> to <FORM METHOD=POST ACTION=“/user-cgi/cgi.exe”>
You would need to make similar changes in CGI.C to allow for the correct virtual directories.
Supported HTML Features dcBrowser supports a subset of HTML 3.2 syntax. dcBrowser also supports the Hypertext Transfer Protocol (HTTP) 1.0 standard. Generally, dcBrowser supports the tags that provide simple display and data entry capabilities, such as text, password, and input types. It automatically filters content that cannot be displayed or processed on the data collection devices. dcBrowser also supports hypertext links, such as anchor, by assigning them to the device’s function keys. Since the 700 Series Mobile Computer does not have function keys, use the stylus to select hypertext links. When you write your application, be sure you understand the user interface and screen capabilities of the devices. Devices can only display one font with no attributes, such as <CITE>. You may want to use some of the tags to indicate how the text is used, not how it is displayed on the device. This release supports the heading hierarchy by using extra spacing and indentation.
2-3
Page 22
Data Collection Browser Client User’s Guide
Unsupported HTML Features The following list explains some of the HTML features that are not currently supported by dcBrowser. Contact your local Intermec representative to determine which features will be implemented in future releases.
2-4
•
HTML tags that are inappropriate for the devices. These tags are either implemented as far as possible or ignored. The dcBrowser gateway filters the HTML tags that are beyond the device’s capability.
•
Plug-ins or other extension mechanisms, such as Java or ActiveX.
•
Client-side scripting languages, such as JavaScript or JScript.
•
Graphics. dcBrowser supports the image tag by using the alternate text attribute (ALT). The device displays the ALT text instead of the graphic.
•
HTML-like security.
•
Audible alerts, other than the standard beeps for the device. You can sound an optional beep a chosen number of times when the device displays a new screen.
•
Cookie support is limited to the session.
•
Differences between scanner input and keypad input. dcBrowser cannot differentiate between the two.
Page 23
Developing and Testing Your Application
2
Summary of HTML 3.2 Tags The Worldwide Web Consortium (W3C) has recommended that Web browsers support the following HTML 3.2 tags. The device supports each of the tags in one of these three ways: •
The device displays the tag as expected and documented in an HTML reference manual.
•
The device displays the text; however, since the device only supports one font, it displays the text, but ignores the attributes.
•
The device ignores the tag.
For a complete description of HTML tags, see an HTML reference manual.
Text Displayed, No Format
Not Supported, Ignored
HTML Tag
Description
Supported as Documented
<!--…>
Comment
X
< > &
Escape sequences
X
<A>
Anchor
<ADDRESS>
Address
<APPLET>
Java Applet
X
<AREA>
Area
X
<B>
Bold
<BASE>
Base
<BEEP>
Beep
<BIG>
Big text
X
<BLOCKQUOTE>
Block quote
X
<BODY>
Body
X
<BR>
Line break
X
<CAPTION>
Caption
<CENTER>
Center
<CITE>
Citation
X
<CODE>
Code
X
<DD>
Definition definition
X
<DFN>
Definition
X
<DIR>
Directory list
Supported with Special Attributes or Notes
X X
X* X X
X X
X
2-5
Page 24
Data Collection Browser Client User’s Guide
Summary of HTML 3.2 Tags (continued)
Supported as Documented
Text Displayed, No Format
Not Supported, Ignored
Supported with Special Attributes or Notes
HTML Tag
Description
<DIV>
Division
X
<DL>
Definition list
X
<DT>
Definition term
X
<EM>
Emphasized
<EMBED>
Embed
X
<FONT>
Font
X
<FORM>
Form
<FRAME>
Frame
X
<FRAMESET>
Frame set
X
<H1>…<H6>
Heading 1…6
<HEAD> head
<HR>
Horizontal rule
X
<HTML>
HTML
X
<I>
Italic
<IMG>
Inline image
X
<INPUT>
Form input
X
<ISINDEX>
Is index
<ITCPRINT>
<KBD>
Keyboard
X
<LI>
List item
X
<LINK>
Link
<MAP>
Map
<MENU>
Menu list
<META>
Meta
<NOBR>
No break
X
<NOEMBED>
No embed
X
<NOFRAMES>
No frames
X
<OL>
Ordered list
<OPTION>
Option
<P>
Paragraph
2-6
X*
X
X X
X
X
X X X X
X X X
Page 25
Developing and Testing Your Application
2
Summary of HTML 3.2 Tags (continued)
Supported as Documented
Text Displayed, No Format
HTML Tag
Description
<PARAM>
Parameters
<PRE>
Preformatted text
<S>
Strike
X
<SAMP>
Sample
X
<SELECT>
Form select
<SMALL>
Small text
<SPAN>
Span
<STRIKE>
Strike
X
<STRONG>
Strong
X
<STYLE>
Style
<SUB>
Subscript
X
<SUP>
Superscript
X
<TABLE>
Table
<TD>
Table data
<TEXTAREA>
Form text area
<TH>
Table header
X
<TITLE>
Title
X
<TR>
Table row
X
<TT>
Teletype
<U>
Underline
<UL>
Unordered list
<VAR>
Variable
<WBR>
Word break
Not Supported, Ignored
Supported with Special Attributes or Notes
X X
X X X
X
X X X
X X* X X X
*The 6400 devices do not support the bold <B> tag. The JANUS devices do not support bold <B>, emphasized <EM>, and underline <U> tags. Emphasized displays as inverse text.
2-7
Page 26
Data Collection Browser Client User’s Guide
Special HTML Tags This section describes HTML tags with special attributes or notes that are particular to using these tags with dcBrowser. For a complete description of HTML tags, see an HTML reference manual.
Anchor Syntax:
<A>…</A>
Attributes:
href
Special Attributes:
key=
Notes:
Assigns a function key to the anchor when links are enabled. Using this attribute overrides the default function key assignments.
To use the href attribute, you must enable the links feature. When links are enabled, the dcBrowser gateway maps the first ten anchor tags in a Web page to the device’s function keys in the order that they appear (on the 502X, the dcBrowser gateway maps the first 12 anchor tags, mapping the last two to M1 and M2). On the device, the user sees the function key (e.g., F1), a greater-than sign (>), and the link. The user presses the appropriate function key to jump to the link. Only http links are supported.
Example:
<A HREF=”HELP.HTM” KEY=”F5”>HELP</A>
If you press F5, the Web server finds the HELP.HTM file, and the device displays the help Web page.
2-8
Page 27
Developing and Testing Your Application
2
Beep Syntax:
<BEEP>
Attributes:
repeat=
Notes: Example:
Sets the number of beeps. The default number of repeats is 0. The valid range for repeats is 0 to 32,767.
To set the beep volume and frequency, see the user’s manual for your device. <BEEP REPEAT=3> The device beeps three times.
Headings Syntax:
<H1>…</H1> <H2>…</H2> <H3>…</H3> <H4>…</H4> <H5>…</H5> <H6>…</H6>
Notes:
<H1> is centered in uppercase letters with a blank line before and after the heading. <H2> is left-justified with a blank line before and after the heading. <H3> is left-justified in uppercase with a two-character indentation and a blank line before the heading. <H4> is left-justified with a four-character indentation and a blank line before the heading. <H5> is left-justified with a six-character indentation and a blank line before the heading. <H6> is left-justified with an eight-character indentation and a blank line before the heading.
2-9