在Web应用程序中如何做 [英] how to do in web application

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

问题描述

当新邮件到达邮件服务器时,我想向用户显示类似于gmail或yahoo邮件客户端的任务栏通知.我的应用程序是一个Web应用程序.

有人可以帮我吗?

I want to show a task bar notification like the gmail or yahoo mail client does to the user when new messages have arrived at the mail server. My application is a web application.

Can anybody help me with this?

Thanks in advance!

推荐答案

如果通过任务栏通知",您的意思类似于Windows任务栏,但这是Web界面的一部分,该界面在浏览器,那么这是可能的.您可以触发 AJAX [ window.SetInterval [ ^ ]并取决于服务器响应显示Web GUI中的通知指示器.

另一方面,如果您正在谈论Windows任务栏,那么您将面临更多麻烦.对于IE,您可能可以求助于ActicveX控件,您可能需要自己编程.使用其他浏览器,您可能会完全不走运.

问候,

Manfred
If by "task bar notification" you mean something akin to the windows taskbar, but that is part of your web interface which is run in the browser, then this is possible. You can fire an AJAX[^] request periodically via window.SetInterval[^] and depending on the servers response show a notification indicator in your web GUI.

If on the other hand you are talking about the windows taskbar, you''d have more trouble to take on. For IE you might be able to resort to an ActicveX control, which you may need to program yourself. With other browsers you''d probably be completely out of luck.

Regards,

Manfred


TaskBar通知通常是基于独立应用程序的,而不是基于Web应用程序的.通知程序会不断对指定的URL进行ping操作,并在后台运行.

在ASP.NET中具有通知程序将是一项艰巨的任务.不过,您可以尝试看一下可能会有所帮助的内容: Web通知 [ ^ ]

您应该尝试在系统任务栏中安装Windows服务或Winforms/WPF应用程序,然后执行此工作.
TaskBar notifications are generally standalone application based and not a web application. Notifiers keep pinging a given URL at intervals and run in the background.

It would be a difficult task to have a notifier in ASP.NET. Though, you can try to have a look at this that might help: Web Notifications[^]

You should try having a Windows service or a Winforms/WPF app that sits in the system taskbar and do the job.


这篇关于在Web应用程序中如何做的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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