AddPackage Method

PocketBrowser 3.x API

The AddPackage Method of the AirBEAMSmart ActiveX Object instructs the AirBEAM Smart client to add the named package to the package list (as many as four can be added).


Syntax Toggle Syntax

AddPackage (Method of the AirBEAMSmart ActiveX Object) Syntax
var bRetVal = object.AddPackage([strPackageName]);

ParametersW Toggle Parameters

Items listed in this section indicate parameters, or attributes which can be set.

Name Possible Values Description
Default Value
strPackageName String The name of the AirBEAM Package to add. N/A

axReturns Toggle Return Values

Name Description
Success Returns true if the package was successfully added or false if it was not

Examples Toggle Examples

The following javascript is example code of how to set the AddPackage method:

<script>
var ab = new ActiveXObject("PocketBrowser.AirBEAMSmart");

function doSync()
{

if(ab.AddPackage("myPackage"))
{
setTimeout('ab.Run();', 100);
}
else
{
alert('Add Package Failed.  You can only have a maximum of 4 packages');
}
}
</script>
Copy example to clipboard Copy example to clipboard

Info Toggle Additional Information

Supported Platforms Windows CE, Windows Mobile
Persistence Persists in the AirBEAMSmart Object.
Min. Requirements AirBEAM Client.