The InvokeMETAFunction Method of the Generic ActiveX Object invokes the specified meta function immediately.
InvokeMETAFunction (Method of the Generic ActiveX Object) Syntax var bRetVal = objGeneric.InvokeMETAFunction(strHTTPEquiv, strContents);
Parameters
Items listed in this section indicate parameters, or attributes which can be set.
Name Possible Values Description
Default Value strHTTPEquiv Module Name Module on which to perform the method or apply the property. This would be placed in the 'HTTP-Equiv' part of the META tag if it was being parsed on a page. N/A strContents Method or Property The Method or Property to be applied to the module. N/A
Examples
The following example enables the scanner:
<script> var objGeneric = new ActiveXObject("PocketBrowser.Generic"); objGeneric.InvokeMETAFunction('Scanner', 'Enabled'); </script>
Copy example to clipboard The following example enables the scanner with only the EAN8 decoder:
<script> var objGeneric = new ActiveXObject("PocketBrowser.Generic"); objGeneric.InvokeMETAFunction('Scanner', 'all_decoders:disabled; ean8:enabled; Enabled'); </script>
Copy example to clipboard The following example displays a signature capture window:
<script> var objGeneric = new ActiveXObject("PocketBrowser.Generic"); objGeneric.InvokeMETAFunction('Signature', 'Visibility:Visible'); </script>
Copy example to clipboard The following example displays the battery indicator with specific styling:
<script> var objGeneric = new ActiveXObject("PocketBrowser.Generic"); objGeneric.InvokeMETAFunction('Battery', 'Left:50; Top:50; IconPosition:Bottom; color:#FF0000; visibility:visible'); </script>
Copy example to clipboard
Remarks
Format of ParametersAll parameters must comply with EMML, the Enterprise Mobility Markup Language.
Additional Information
Supported Platforms Windows CE, Windows Mobile Persistence Executes instantaneously Min. Requirements None