处理过程中Gif不会运行 [英] Gif won't run while processing is taking place

查看:70
本文介绍了处理过程中Gif不会运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我正在开发一个Web应用程序系统,有时处理需要一段时间才能完成。为了防止用户在我的网站完成工作之前关闭浏览器,我想我会显示一个动画.gif,表明我的系统正在做某事。


我遇到的问题是,当我的网站正在处理时,gif并没有做动画。显示进度条并显示浏览器底部的一些进度,但是gif不会做它的事情。


有谁知道如何解决这个问题?


提前谢谢

-Frin

Hi there,

I''m developing a web application system and at times the processing takes a while to finish. In order to keep the users from closing the browser before my site is finished working, I thought I''d display an animated .gif that would indicate my system was doing something.

The problem I''m having is that the gif doesn''t do its animated thing when my site is processing. A progress bar is displayed and shows some progress at the bottom of the browser but the gif won''t do its thing.

Does anyone know how I can get around this problem?

Thanks in advance
-Frin

推荐答案

Frin,我正在开发一个应用程序正是这样。您可能想要考虑使用ajax。 Ajax将允许您间歇性地检查服务器在您的任务上的进度。此外,由于您的页面将不再加载,因此可能会清除动画gif的问题(我们的项目也会毫无问题地使用)。
Frin, I work on an application that does exactly this. You might want to think about using ajax. Ajax will allow you to check on the server''s progress on your task intermittently. Also, since your page will no longer be loading it may clear up the problem with the animated gif (our project uses on too without issue).



Frin,我正在研究一个完全正确的应用程序。您可能想要考虑使用ajax。 Ajax将允许您间歇性地检查服务器在您的任务上的进度。此外,由于您的页面将不再加载,它可能会清除动画gif的问题(我们的项目也使用,没有问题)。
Frin, I work on an application that does exactly this. You might want to think about using ajax. Ajax will allow you to check on the server''s progress on your task intermittently. Also, since your page will no longer be loading it may clear up the problem with the animated gif (our project uses on too without issue).



我完全没有使用Ajax的经验。我甚至没有听说过,直到另一个月我开始在这个论坛上发帖。


这很容易学习吗?

是否可以轻松地将其整合到.NET应用程序中?

是否有类似JavaScript的东西?


感谢您的建议


-Frinny


I have absolutely no experience with Ajax. I hadn''t even heard of it ''til the other month when I started posting on this forum.

Is it easy to learn?
Is it easily incorporated into a .NET application?
Is it anything like JavaScript?

Thanks for the suggestion

-Frinny


嘿Frin,您处理了多少数据?这是ASP吗?您可以在处理时使用Application.Lock(性能可能是个问题)


(将线程移动到Javascript / Ajax)
Hey Frin, how much data are you processing? Is this in ASP? You could use Application.Lock while your processing ( performance may be an issue )

(Moved thread to Javascript/Ajax)


这篇关于处理过程中Gif不会运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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