Returns a [script] tag linking to the WCPP-detection script code.
Namespace: Neodynamic.SDK.WebAssembly: Neodynamic.SDK.WebClientPrint (in Neodynamic.SDK.WebClientPrint.dll) Version: 1.0.2000.0 (1.0.2000.0)
Syntax
C# |
---|
public static string CreateWcppDetectionScript() |
Visual Basic |
---|
Public Shared Function CreateWcppDetectionScript As String |
Visual C++ |
---|
public: static String^ CreateWcppDetectionScript() |
Return Value
A [script] tag linking to the WCPP-detection script code.
Remarks
The WCPP-detection script code ends with a 'success' or 'failure' status.
You can handle both situation by creating two javascript functions which names must be wcppDetectOnSuccess() and wcppDetectOnFailure(). These two functions will be automatically invoked by the WCPP-detection script code.
For non-IE browsers, the WCPP-detection script uses a delay time variable which by default is 10000 ms (10 sec). You can change it by creating a javascript global variable which name must be wcppPingDelay_ms. For example, to use 5 sec instead of 10, you should add this to your script:
CopyC#
var wcppPingDelay_ms = 5000;