1
WDT60™
92
4
Key press Metatags
The key press metatags can be used to call JavaScript functions. They have the
name structure: “DL_Key_xxx” where xxx is the VKey code.
Example:
<meta http-equiv="DL_Key_13" content="Javascript:CheckEnter();">
Assigning a key press via a DL_Key metatag overrides its use on the page. For
instance, when entering data in a text box a character assigned as a DL_Key would
not be entered in the text box. Instead, the javascript action would occur.
Refer to the Microsoft website to find the list of all the possible Vkey codes:
http://msdn.microsoft.com/en-us/library/bb431750.aspx
http://msdn.microsoft.com/en-us/library/aa243025(VS.60).aspx
Because DL_Keys persist past the page in which they were loaded,
the DL_Clear metatag is provided to clear the settings on subsequent
page loads.
NOTE
Scanning Metatags
DL_Scan – Captures scan results and sends barcode/tag value to a javascript
function on the web page.
If the “content=” value is a javascript function the device will be taken out of keyboard
wedge mode and start listening for scan events. A scanned barcode/tag result will be
used as an argument to that javascript function which is then invoked.
If the “content=” value is “Wedge” then the device will stop listening for scanned
event and enter keyboard wedge mode.
If the “content=” value is “Disable” then the device will stop listening for scanned
events but not enter keyboard wedge mode.
Example:
<meta http-equiv=”DL_Scan” content=”Javascript:ValidateInput()”>