Search

Atalasoft Knowledge Base

INFO: WingScan in multiple tabs and reinitializing WingScan

Anthony
WingScan

The WingScan component should not be loaded into multiple tabs or browsers simultaneously. If this happens inadvertently you will find that the page that initialized the WingScan component first will continue to work while the second page will not have access to the scanner.  In most cases it is sufficient to simply close the original tab or browser to restore normal operation of WingScan; however in some cases you may need to completely restart your browser(s).

If you are looking for a way to programmatically stop and start the WingScan component you can use the functions below. Note that these functions only impact the WingScan client loaded by the page that runs this code. There is no way to stop all WingScan client on a client machine.

function AbortScan() {
    Atalasoft.Controls.Capture.WebScanning._scanClient.abortScan();
    Atalasoft.Controls.Capture.WebScanning.dispose();
}

function InitScan() {
    var init = Atalasoft.Controls.Capture.WebScanning.isInitialized();
    if (!init) {
        // The method below references the WingScanDemo alternativly you could 
// call Atalasoft.Controls.Capture.WebScanning.initialize() directly InitializeWebScanning(); } }

Details
Last Modified: Last Month
Last Modified By: Tananda
Type: INFO
Article not rated yet.
Article has been viewed 57 times.
Options
Also In This Category