473,549 Members | 2,603 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Gif wont run while processing is taking place

Frinavale
9,735 Recognized Expert Moderator Expert
Hi there,

I'm developing an ASPX 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
Jan 15 '07 #1
22 5916
b1randon
171 Recognized Expert New Member
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).
Jan 15 '07 #2
Frinavale
9,735 Recognized Expert Moderator Expert
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).

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
Jan 15 '07 #3
AricC
1,892 Recognized Expert Top Contributor
Hey Frin, how much data are you processing? Is this in ASP? You could use Application.Loc k while your processing ( performance may be an issue )

(Moved thread to Javascript/Ajax)
Jan 15 '07 #4
Frinavale
9,735 Recognized Expert Moderator Expert
Hey Frin, how much data are you processing? Is this in ASP? You could use Application.Loc k while your processing ( performance may be an issue )

(Moved thread to Javascript/Ajax)

I'm using VB .Net (which uses asp of course)

I'm doing a bunch of validation requests that run against a database. Its quite a bit of processing and for the database to timeout its sometimes taking something like 30seconds....

I've never heard of Application.Loc k before.
I'm going to look into it now to see if it could help me.

I just looked up Ajax stuff and even though it looks like something I'd want to implement in the future...I can't really learn this right now and write the server side functions since my project is going to be launched within the next couple of days.

I didn't think it would take much to get an animated .gif to run while sever processing was happening. I guess I was wrong.

Thanks for all your help
-Frinny
Jan 15 '07 #5
AricC
1,892 Recognized Expert Top Contributor
I don't think it is that difficult, in fact I'm moving this to the .Net forum and copy the ASP forum as this is more of an ASP.Net issue. As a work around for the time being maybe this solution would work. While the user is in the process if in your Try/Catch you hit an excError ( what I call mine ) throw the error to a log file on your server. Then just check the log file for errors daily or write a script to get it emailed to you. I have a great example of a VB.Net error file writer if you need one. I will just need to dig it up. Let me know.


HTH,
Aric
Jan 16 '07 #6
kenobewan
4,871 Recognized Expert Specialist
If the animated gif is showing and is not animated, then I believe that there is a problem with the image. Confirm by opening by itself in the browser. If this is the case, you need to recreate or find another image...
Jan 16 '07 #7
Killer42
8,435 Recognized Expert Expert
If the animated gif is showing and is not animated, then I believe that there is a problem with the image. Confirm by opening by itself in the browser. If this is the case, you need to recreate or find another image...
You may find that it's browser-specific.

Sorry to butt in, I know virtually nothing about ASP, or web programming in general. However, just from the end-user perspective, I've noticed in IE that animated GIFs always stop whenever any link is clicked. FireFox, on the other hand, appears to leave them running, in at least some cases. For example, click on someone's avatar on the leader-board to the right. Under IE (for me, at least) my avatar immediately stops. Under FireFox, it keeps right on animating until the page disappears.
Jan 16 '07 #8
Frinavale
9,735 Recognized Expert Moderator Expert
I don't think it is that difficult, in fact I'm moving this to the .Net forum and copy the ASP forum as this is more of an ASP.Net issue. As a work around for the time being maybe this solution would work. While the user is in the process if in your Try/Catch you hit an excError ( what I call mine ) throw the error to a log file on your server. Then just check the log file for errors daily or write a script to get it emailed to you. I have a great example of a VB.Net error file writer if you need one. I will just need to dig it up. Let me know.


HTH,
Aric

I actually do recording the error...but not into a file....


Thanks for the suggestion though. Its a good one!

-Frinny
Jan 16 '07 #9
Frinavale
9,735 Recognized Expert Moderator Expert
If the animated gif is showing and is not animated, then I believe that there is a problem with the image. Confirm by opening by itself in the browser. If this is the case, you need to recreate or find another image...
There is nothing wrong with the gif. I've checked it in browsers and picture viewers alike. It just simply will not work when the browser is waiting for a response from the server....the whole point to putting it in is go give the user something to watch to keep them from closing the web browser while some processing is happening.

You may find that it's browser-specific.

Sorry to butt in, I know virtually nothing about ASP, or web programming in general. However, just from the end-user perspective, I've noticed in IE that animated GIFs always stop whenever any link is clicked. FireFox, on the other hand, appears to leave them running, in at least some cases. For example, click on someone's avatar on the leader-board to the right. Under IE (for me, at least) my avatar immediately stops. Under FireFox, it keeps right on animating until the page disappears.
I've noticed this too.

I've also noticed while FireFox is waiting for the site to finish processing that sometimes (not always because sometimes it works flawlessly) the image isn't even loaded onto the page. I've used javaScript to change the image source once the submit button's clicked ...and when I view the html code this value has been changed properly...it should be displaying, but the browser's waiting for a response.

Hmmm...I wonder if there's a way to tell the browser to wait but not pause everything. I guess this is how Ajax would help out here. I'm just not sure what to write for the server side script that the Ajax code would call to display a gif...it seems to be overkill (and I've never used Ajax)...that and I'm not sure if Ajax is used the same way JavaScript is used for .Net applications.


Thanks for all the suggestions!

-Frinny
Jan 16 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1452
by: Maxim | last post by:
I am wondering if anyone could suggest come performance improvements for processing a very large file. THe processing taking place here is on 30-50MB chunks of the file. Performance is extremely important here. + I initialise a StringBuilder object with the result of the function System.Text.Encoding.GetString to convert the byte input...
4
1864
by: dhnriverside | last post by:
HI guys I've just written my first independent namespace for my library (yay me!). However, on trying to add it to my website project, it causes an error when I look at the website. It compiles ok though... The error message is... "The located assembly's manifest definition with name 'HudsonNash.Utils.Security' does not match the...
6
15172
by: Shawn Regan | last post by:
Hello, What is the best practice to show a window/form of some animation while processing is going on in the back ground. I want the user to see something while some processing is taking place. TIA
4
2096
by: hzgt9b | last post by:
Using VB .NET 2003, I have a windows application that performs a series of file actions (copy, move, delete) but the actions are completing before the window is painted on the screen... how can I force the form to be painted on the screen first, then the actions start? Or should I pause the app for a few seconds while the form paints. Any...
5
2785
by: JasonDamianUs | last post by:
Hello all, I am trying to write a simple PHP script to process a form.. the function seems to be working fine // subscriber is the users email in the form if (( $subscriber ) && ($_SERVER == 'POST') ) thing is while this processing is taking place the page load hangs... in IE i see nothing the page background, in Firefox (even worse) I...
14
7871
by: Dave Booker | last post by:
I'm doing some analysis that is readily broken up into many independent pieces, on a multicore machine. I thought it would be best to just queue like 1000 of these pieces in the ThreadPool, and let that object take care of running them in the background on the machine's free cycles. But I need the program to wait for all the queued pieces...
20
4365
Frinavale
by: Frinavale | last post by:
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...
14
4542
by: Abhishek Bhatt | last post by:
The data is transferred from one table to another when user clicks on a button on the screen. The transfer takes approax 10-15 seconds. During this time I am able to move the mouse but not able to click on any buutons on the screen. It gives me a feeling as if system is hanged. Is it possible to show some processing icon during this 10-15...
3
2111
by: The Frog | last post by:
Hi everyone, I am trying to refine some ADO code that is used to extract data from excel spreadsheets and do a simple ETL type process to place the data into a table. The code works fine and is seemingly reliable enough. It is also as slow as <insert metaphor>. Basically the process is taking the excel sheet and reading it into a...
0
7541
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7464
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7979
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7826
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5107
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3512
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3493
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1074
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
781
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.