从ActiveX获取输出使网站崩溃. [英] Getting output from ActiveX crashing the website..

查看:74
本文介绍了从ActiveX获取输出使网站崩溃.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好..
经过处理后,我从ActiveX到网站得到一个字符串作为输出.
我这样打电话给ActiveX:

hi all..
i m getting one string as a output from my ActiveX to website after processing..
i m calling ActiveX like this:

var obNewAXComponent = new ActiveXObject("AXComponent.AXComp");

                       var obj = obNewAXComponent.GetScanImage();
                       if (obj != "") {
                           document.getElementById('<%= txtimgstring.ClientID %>').value = obj;
                           document.getElementById('<%= btnStrToImg.ClientID %>').click();
                           
                       }



在我单击事件时遇到对象后,我的网站崩溃了
我的obj在MB中包含很长的字符串
所以这就是我的网站崩溃的原因
有没有人有我可以避免崩溃的解决方案?
请帮助我
谢谢..
上帝保佑大家..:)



after getting object when i am calling click event my website is crashing
my obj contains very long string in MB
so this is the reason my website is crashing
Did anyone have any solution by which i can avoid crashing??
please help me
thank you..
God bless you all..:)

推荐答案

您遇到什么样的错误?

看来,您可能会收到验证请求错误.
如果是,则需要设置validationRequest = false

如果遇到会话超时错误,则图片会有所不同.

如果遇到其他错误,请指定错误详细信息.

希望这会有所帮助.
欢呼
What kind of error you are getting?

It seems, you might be getting validation request error.
If yes, you need to set validationRequest=false

If you are getting session timeout error, then the picture is different.

If you are getting different error, please specify the error details.

Hope this helps.
cheers


这篇关于从ActiveX获取输出使网站崩溃.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆