473,666 Members | 2,047 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Animated Processing

I'm trying to show an animated image temporarily while the web server is
processing a long request. I attempted to use a combination of CSS
styles and JavaScript to temporarily hide or show only appropriate
portions of the page (e.g. hide the data and show an animated
"processing " image while the server is doing work), however, it's not
exactly working out the way I had hoped.

What's the best way to accomplish this task?

Thank you in advance,

--
Sean
Feb 13 '06 #1
4 1576
How are you making the request to the server? Is it a standard
postback, or an out-of band AJAX call?

And what exactly is the problem with the way you're doing it?

Feb 13 '06 #2
Flinky Wisty Pomm wrote:
How are you making the request to the server? Is it a standard
postback, or an out-of band AJAX call?
Right now, it's a standard postback. Would it be different if it were a
callback?
And what exactly is the problem with the way you're doing it?


Basically, it's likely that it's my own lack of education in CSS. I've
had various issues trying to get it to work. One is that my styles
render completely different in IE and Firefox, so I might need to do
some kind of browser hack. However, I've never been able to
successfully create a "perfect" style for either browser, to begin with.

To continue, you need a little more background on my page:

There's a table, a processing image (usually hidden unless the server is
processing) and a footer. The problem lies in the rendering of the
footer. I'd like to create a style that places the footer just under
the last line of the table in the normal page view, and just under the
"processing " image when the server is processing a request.

One attempt placed the footer always under where the processing image
is, regardless of whether or not the processing image was visible (in
other words, potentially right in the middle of the table). Another
attempt always placed the footer just under the last line of the table
(again regardless of if the table was visible or not).

Here is a very rough draft of what I've tried (please note that all
elements are currently visible to make it easier for you to understand):

http://143.247.20.203/test
http://143.247.20.203/test/style.css

What I'd like to accomplish is to have the visible elements always
starting in the upper left-hand side of the page. The footer should
float up and down in relation to whichever element is visible (the table
or the image).

And I'm not even sure that CSS/JavaScript is the answer. There might be
something that ASP.NET has to offer that I'm simply overlooking.

Thank you again for your help,

--
Sean
Feb 13 '06 #3
a postback approach will not work. when the browser performs a postback, it
generally stops performing display updates on the page. generally a animated
gif will not run. you can get the gif to display, by delaying the postback
by using a windows.setTime out() to perform the postback.

when you see animated gif on a webpage, it usually done with a polling page.
new sites may use ajax.

-- bruce (sqlwork.com)

"Fao, Sean" <en**********@y ahoo.comI-WANT-NO-SPAM> wrote in message
news:e9******** ******@TK2MSFTN GP14.phx.gbl...
Flinky Wisty Pomm wrote:
How are you making the request to the server? Is it a standard
postback, or an out-of band AJAX call?


Right now, it's a standard postback. Would it be different if it were a
callback?
And what exactly is the problem with the way you're doing it?


Basically, it's likely that it's my own lack of education in CSS. I've
had various issues trying to get it to work. One is that my styles render
completely different in IE and Firefox, so I might need to do some kind of
browser hack. However, I've never been able to successfully create a
"perfect" style for either browser, to begin with.

To continue, you need a little more background on my page:

There's a table, a processing image (usually hidden unless the server is
processing) and a footer. The problem lies in the rendering of the
footer. I'd like to create a style that places the footer just under the
last line of the table in the normal page view, and just under the
"processing " image when the server is processing a request.

One attempt placed the footer always under where the processing image is,
regardless of whether or not the processing image was visible (in other
words, potentially right in the middle of the table). Another attempt
always placed the footer just under the last line of the table (again
regardless of if the table was visible or not).

Here is a very rough draft of what I've tried (please note that all
elements are currently visible to make it easier for you to understand):

http://143.247.20.203/test
http://143.247.20.203/test/style.css

What I'd like to accomplish is to have the visible elements always
starting in the upper left-hand side of the page. The footer should float
up and down in relation to whichever element is visible (the table or the
image).

And I'm not even sure that CSS/JavaScript is the answer. There might be
something that ASP.NET has to offer that I'm simply overlooking.

Thank you again for your help,

--
Sean

Feb 13 '06 #4
Hi Bruce,

Bruce Barker wrote:
when you see animated gif on a webpage, it usually done with a polling page.
new sites may use ajax.


Aside from the broad picture, I don't know much about AJAX right now,
though I'm planning on learning it soon. But the term "polling page" is
new to me. Can you please explain what that is?

Thank you again for the response,

--
Sean
Feb 13 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
9697
by: John J. Hughes II | last post by:
Is it possible using Image or Bitmap to build and save an animated GIF file? I am not have a problem saving the GIF file just getting the frames added to it. I did find ImageAnimator but it only seems to deal with showing the GIF and not saving it. Thanks, John
10
23532
by: Liz | last post by:
All: Can anyone tell me why my animated GIF does not show up as animated when put into a pictureBox?? Thanks. Liz
7
6320
by: Gary Kaucher | last post by:
At the top of the page on my website http://www.itemlook.com I have an animated gif called "eyeline.gif". It has worked fine in the past, but recently I am unable to get it to work using IE6. All that I get is a box with nothing in it. It almost seems as if the file will not open on my page, let alone animate. It still works fine with my Netscape browser. I am using Windows 98. Any ideas would be appreciated. Thanks,
2
2651
by: Dale Reed | last post by:
Hi, I have a button on an aspx page (I'm using vs2005 with asp2), which when clicked takes a while to do some data processing before it posts back to the screen to display the results. I therefore created a little animated gif, which, when the button is clicked, I display using javascript in a floating div, the idea being that the animation shows that something is happening until the postback occurs.
4
8033
by: Chris Moltisanti | last post by:
Hi, I am executing a piece of javascript that does some intensive processing (sorting large tables). This can take a good few seconds so I have an animated gif as a progress bar to let the user know that something is happening. However, the GIF does not animate when the javascript is processing. Anyone know why? I am aware that animated GIFs stop animating when a page is loading, but I am not loading the page here.
4
1935
by: Helmut Giese | last post by:
Hello out there, this is OT but maybe some of you were in the past faced with the same problem: I have lots of sequences of GIF files to combine into animated GIFs. I can do it 'by hand' with Microsofts Gif Animator, but given the amount of files I have to process, a tool which can be controlled from the command line looks much more attractive. Googling led me to WhirlGif, and I got it compiled (Windows) - but it appears to not like my...
5
1911
by: Tlink | last post by:
Is it possible to activate a animated item once the form/page is submitted for processing, as I have a number of forms that take a while and the users keep submitting the page thereby restarting the process. Any help would be appreciated.
7
14530
by: Lemune | last post by:
Hi.. I am developing an application that connect to database on the other side of the net. And each time i want to connect to database and run some sql command, i want my user to know that there is some process is runing. My idea is to show animated gif until the process is done. My question is how i could achieved that? Any one could give me a clue or hint or even sample code? Thank you? This is my snippet code:
27
14015
by: Phil | last post by:
I thought it would be nice to display some animated GIFs on some of my forms. I put a PictureBox control on a form, and loaded my GIF file in. It animates, but not properly. It seems very jerky and dwells on some frames longer than it should. Searching for this problem, I have found several people who have stated that animated GIFs don't work in a PictureBox at all, and you have to use the ImageAnimator. I assume they must be referring to...
0
8871
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8783
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8552
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8640
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7387
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4198
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2773
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1776
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.