TWAIN ActiveX Control, Plug-in, Scanner SDK, Component, HTTP Control/SDK

Dynamsoft TWAIN Products

Support Community for TWAIN Control/Component/SDK for Scanning Solutions
* Login   * Register
* FAQ    * Search

It is currently Sun May 20, 2012 2:57 pm




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Hiding the plug-in resets it ?!?
PostPosted: Mon Feb 28, 2011 7:09 am 
Offline

Joined: Mon Feb 28, 2011 6:57 am
Posts: 5
Hi,

we are now evaluating the plug-in (V 6.1 trial) version to add it into our solution. The ActiveX works fine!
The only issue we have right now is with hiding the plug-in. It seems like it gets resets (not with the ActiveX).

Is it because we are working with the trial version or ... ?

Thx,
Ben


Top
 Profile  
 
 Post subject: Re: Hiding the plug-in resets it ?!?
PostPosted: Tue Mar 01, 2011 12:21 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
Hi bmarquis,
Quote:
The only issue we have right now is with hiding the plug-in. It seems like it gets resets (not with the ActiveX).

Would you please be more specific about this? Except for the 30 days' limitation, the trial version is fully functional as the full version.

Thanks.

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject: Re: Hiding the plug-in resets it ?!?
PostPosted: Tue Mar 01, 2011 6:18 am 
Offline

Joined: Mon Feb 28, 2011 6:57 am
Posts: 5
I scan my files, everything works fine. Every image is displayed.
I need to hide (javascript) the Plug-in to do some actions.
Code:
$("#DynamicWebTwain1").hide();
...
$("#DynamicWebTwain1").show();

After displaying the plug-in again, there is no image in it, nor in the buffer.

This works fine with the ActiveX version.


Top
 Profile  
 
 Post subject: Re: Hiding the plug-in resets it ?!?
PostPosted: Wed Mar 02, 2011 12:05 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
Hi bmarquis,

The cause of the problem is that the web page is refreshed after you hide Dynamic Web TWAIN in Firefox. This behavior is decided by the browser.

As a workaround, you can try setting the width and height of DWT to 1 to hide the control, and then change the values back if you want to view the images. Here is a simple sample for you.
Code:
<EMBED
   TYPE="Application/DynamicWebTwain-Plugin"
       
   WIDTH="300"
   HEIGHT="300"
   PLUGINSPAGE="http://192.168.1.20/SaveToFileFirefox/DynamicWebTWAINPlugIn.exe">
</EMBED>
...

function btnDisplay_onclick()
{
    var Plugin = document.embeds[0];
    Plugin.width = "300";
    Plugin.height = "300";
}

function btnHidden_onclick()
{
    var Plugin = document.embeds[0];
    Plugin.width = "1";
    Plugin.height = "1";
}

Please keep me updated on this issue.

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject: Re: Hiding the plug-in resets it ?!?
PostPosted: Wed Mar 02, 2011 7:24 am 
Offline

Joined: Mon Feb 28, 2011 6:57 am
Posts: 5
Hi

$("#DynamicWebTwain1") is a div, not the plug-in object

doing $("#DynamicWebTwain1").hide() is equivalent to document.getElementById("DynamicWebTwain1").style.display="none";.
There is no page refresh.

Is there any action taken by the plug-in (ondisplayevent or ...) that is not the same as in the ActiveX??

-Ben


Top
 Profile  
 
 Post subject: Re: Hiding the plug-in resets it ?!?
PostPosted: Thu Mar 03, 2011 2:30 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
Hi bmarquis,

You are right that the page is not refreshed. However, when $("#DynamicWebTwain1").hide() is called, the control is initialized and removes all the scanned images. Technically, Dynamic Web TWAIN does nothing for this behavior. However, when you hide the control, Firefox forces the initialization of the control. I’ve forwarded your information to our developers, and will keep you updated.

For now, I recommend you resize the control (as mentioned in the above post) to achieve your requirements. Please let me know how you think about this.

Thanks,

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject: Re: Hiding the plug-in resets it ?!?
PostPosted: Thu Mar 03, 2011 7:12 am 
Offline

Joined: Mon Feb 28, 2011 6:57 am
Posts: 5
Hi,

it's a work-around that I can live with for the moment. I would of like that both of the components (ActiveX and Plug-in) reacts the same but I understand that there is some differences as well. Just let me know if your Dev team find any solutions, I'll continue to investigate on my side too.

Thanks,
Ben


Top
 Profile  
 
 Post subject: Re: Hiding the plug-in resets it ?!?
PostPosted: Fri Mar 04, 2011 2:20 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
Hi Ben,

Sure. I will keep you updated.

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

It is currently Sun May 20, 2012 2:57 pm


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Copyright © 2010 Dynamsoft Corporation. All Rights Reserved. | Knowledge Base | Source Control Blog