在Netscape中调用SOAP [英] SOAP call in Netscape

查看:69
本文介绍了在Netscape中调用SOAP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好 -


我在远程计算机上运行了一个.NET Web服务,我有一个Netscape Navigator 7.0通过javascript访问它客户端

通过SOAP javascript编码。当我运行

时,一切正常,这意味着函数被成功调用,一切都是好的。我的客户端javascript上有一个window.setInterval,它每隔x毫秒就会调用一次web服务函数。然而,当我试图关闭窗口时,很快就会收到b / b
。它会崩溃整个Netscape程序。

任何人都可以帮助我吗?


谢谢。

Hi all -

I have a .NET web service running on a remote machine, and I have
Netscape Navigator 7.0 accessing it through javascript on the client
side through SOAP javascript coding. Everything works ok when I run
it, meaning the function gets successfully called and everything is
fine. I have a window.setInterval on my client side javascript, and it
calls the web service function every x milliseconds. However, as soon
as I try to close the window, it crashes the entire Netscape program.
Can anyone help me?

thanks.

推荐答案




MB HONG 20写道:



M B HONG 20 wrote:

我的客户端javascript上有一个window.setInterval,它每隔x毫秒调用一次web服务函数。然而,当我试图关闭窗口时,它会崩溃整个Netscape程序。
I have a window.setInterval on my client side javascript, and it
calls the web service function every x milliseconds. However, as soon
as I try to close the window, it crashes the entire Netscape program.




你能存储window.setInterval的结果,例如

var intervalId = window.setInterval(...)

并尝试调用clearInterval例如

< input type =" button" value =" close"

onclick =" window.clearInterval(intervalId);

window.close();">

在窗户关闭之前?这样至少可以告诉

挂起的计时器是否导致崩溃。


当然你最初试图调用Web服务你之前发布的
是所有阻止浏览器的同步调用所以你需要改变它来进行异步调用,这可能会改善一些事情。


-


Martin Honnen
http://javaScript.FAQTs.com/


Martin - 再次感谢您的回复。


由于我的应用程序对时间非常敏感,我担心我必须坚持使用同步方法。我为计时器实现了

window.clearInterval,它可以工作。然而,这是否是解决此次崩溃的唯一途径?因为如果有人点击

" close"按钮我已经创建它不会崩溃,但如果他决定只用

用Alt + F4关闭它或点击x,它将会崩溃整个

网景流程。我已经阅读并得出结论

Netscape在其

API中没有OnClose事件或类似内容。有任何想法吗?谢谢。


Charles。

Martin - Thanks again for your reply.

Since my application is very time sensitive, I''m afraid that I must
stick with a synchronous approach. I implemented the
window.clearInterval for the timer, and it works. However, is this the
only way to get around this crash? Because if someone clicks on the
"close" button i have created it wont crash, but if he decides to just
close it with Alt + F4 or clicking on the "x", it will crash the entire
Netscape process. I''ve read around and come to the conclusion that
Netscape does not have an OnClose event or something similar in its
API. any ideas? thanks.

Charles.





MB HONG 20写道:



M B HONG 20 wrote:

我为计时器实现了
window.clearInterval,它可以工作。但是,这是解决此次崩溃的唯一方法吗?因为如果有人点击
关闭按钮我已创建它不会崩溃,但如果他决定只用Alt + F4关闭它或点击x,它将使整个
Netscape进程崩溃。
I implemented the
window.clearInterval for the timer, and it works. However, is this the
only way to get around this crash? Because if someone clicks on the
"close" button i have created it wont crash, but if he decides to just
close it with Alt + F4 or clicking on the "x", it will crash the entire
Netscape process.




尝试是否

window.onunload = function(evt){

clearInterval(intervalId);

};

工作并避免崩溃。

-


Martin Honnen
http://JavaScript.FAQTs.com/


这篇关于在Netscape中调用SOAP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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