Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.56 KB

File metadata and controls

40 lines (28 loc) · 1.56 KB
layout default-layout
noTitleIndex true
needAutoGenerateSidebar true
title Why I cannot hide the loading bar (spinner)?
keywords Dynamic Web TWAIN, UI Customization, hide, spinner, loading bar
breadcrumbText Why I cannot hide the loading bar (spinner)?
description Why I cannot hide the loading bar (spinner)?
date 2022-08-05 11:32:29 +0800
last_modified 2022-08-28 20:58:54 +0800

UI Customization

Why I cannot hide the loading bar (spinner)?

Symptom:

In v17.3 of the Dynamic Web TWAIN SDK, you may find the spinner is unable to hide with the method mentioned in this article, it will continue to spin or will never stop.

image1

Cause:

The event Dynamsoft.OnWebTwainPreExecuteCallback is not registered in the dynamsoft.webtwain.install.js file in v17.3 so that the Dynamsoft.DWT.OnWebTwainPreExecute() will never be called.

Workaround:

Step 1) In the dynamsoft.webtwain.install.js file, add the event behind the function OnWebTwainPostExecuteCallback.

image3

Dynamsoft.OnWebTwainPreExecuteCallback = function(){
    console.log("OnWebTwainPreExecuteCallback")
}

Step 2) Follow the step in this article.

Note: If Dynamsoft.DWT.AutoLoad in your code is set to false, please contact us.