javascript Chrome Web 应用程序中的黄玉签名板
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8619657/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Topaz Signature Pad in Chrome Web Application
提问by Brian
I am trying to incorporate an electronic signature using the Topaz Systems signature pad into my Web Application. Everything appears to work within Internet Explorer, as the signature pad uses Active X to access the pad plugged into the USB port. My Web Application however is relying on Chrome so I am attempting to get this to cooperate within Chrome.
我正在尝试将使用 Topaz Systems 签名板的电子签名合并到我的 Web 应用程序中。一切似乎都可以在 Internet Explorer 中运行,因为签名板使用 Active X 来访问插入 USB 端口的板。然而,我的 Web 应用程序依赖于 Chrome,所以我试图让它在 Chrome 中进行协作。
I have tried unsuccessfully to use the Active X for Chrome plugin Active X for Chrome
我尝试使用 Active X for Chrome 插件Active X for Chrome失败
The plugin itself appears to be working and there is output to the Console however I am unable to sign the box.
I am currently just trying to work with the simple demos found at
Topaz Site Demos
插件本身似乎正在运行,并且有输出到控制台,但是我无法在框上签名。
我目前只是尝试使用Topaz Site Demos上的简单
演示
Any help or direction as to how I can accomplish this would be greatly appreciated!
任何有关我如何实现这一目标的帮助或指导将不胜感激!
回答by Alex T
Topaz released a plugin that will work for Firefox, Chrome, Safari, Opera, and Internet Explorer browsers. I tested it in chrome and it works.
Topaz 发布了一款适用于 Firefox、Chrome、Safari、Opera 和 Internet Explorer 浏览器的插件。我在 chrome 中对其进行了测试,并且可以正常工作。
The following is a link to the article: http://www.topazsystems.com/news/SigPlusWeb.htm
回答by ask21900
As of now, the only way to get a Topaz signature pad working in chrome is to create an applet. Here is an example:
到目前为止,让 Topaz 签名板在 chrome 中工作的唯一方法是创建一个小程序。下面是一个例子:
import java.applet.Applet;
import java.awt.GridLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.beans.Beans;
import javax.comm.CommDriver;
import com.topaz.sigplus.SigPlus;
import com.topaz.sigplus.SigPlusEvent0;
import com.topaz.sigplus.SigPlusListener;
public class SigPlusAppletDemo extends Applet {
public void init() {
// TODO Auto-generated method stub
super.init();
SigPlusAppletDemo demo = new SigPlusAppletDemo();
}
public void start() {
// TODO Auto-generated method stub
super.start();
}
/**
*
*/
SigPlus sigObj = null;
public SigPlusAppletDemo()
{
try
{
ClassLoader cl = (com.topaz.sigplus.SigPlus.class).getClassLoader();
sigObj = (SigPlus)Beans.instantiate( cl, "com.topaz.sigplus.SigPlus" );
setLayout( new GridLayout( 1, 1 ) );
add( sigObj );
sigObj.addSigPlusListener( new SigPlusListener()
{
public void handleTabletTimerEvent( SigPlusEvent0 evt )
{
}
public void handleNewTabletData( SigPlusEvent0 evt )
{
}
public void handleKeyPadData( SigPlusEvent0 evt )
{
}
} );
setSize( 500, 100 );
show();
sigObj.setTabletModel( "SignatureGemLCD1X5" );
sigObj.setTabletComPort( "HID1" );
sigObj.setTabletState( 1 );
}
catch ( Exception e )
{
return;
}
}
}