Stop Animated GIF Once Report Data Is Returned?
Jun 1, 2010
I can't find the answer anywhere, and the particulars are driving me crazy. I've been tasked with updating an older application, using only javascript for client UI stuff. Reports used to be generated using PDF templates and manually looping through datasets and basically doing a form fill, then displaying the report. This has crashed the server many, many times. I've since updated the app to use a report server, to help bring that report generation load offline. Every works fine, except that the animated GIF will not stop after the report returns. I use :
<span id="hiddenImg" style="display: none">
<img src="" id="animate" align="middle" alt="Loading"/>
</span>
Along with the following javascript:
function showDiv()
{
document.getElementById('hiddenImg').style.display ="";
setTimeout('document.images["animate"].src="images/loading.gif"',100);
}
Which works beautifully. On the server side, I have something like this:
Response.AddHeader("Content-Type", "application/" + format);
Response.AddHeader("Content-Disposition", "attachment;filename=" + "report." + format);
data = report.GetBytes(reportpath, rbFormat.SelectedValue);
Response.BinaryWrite(data);
Response.End();
Where data is the byte stream return by the report server. The only thing that is not working is that the animated GIF will continue to play even after the report is delivered and the user clicks on the open/save/cancel dialog. I suspected it was the Response.End(); call, but even eliminating the line and letting the server to continue to run does not alleviate this problem. It seems that the page is NOT performing any postback after the report data is received, and the .html source is obviously showing the GIF. If I manually postback, I lose the open/save/cancel dialog, and the user has no opportunity to display the content.
View 1 Replies
Similar Messages:
Apr 10, 2010
I managed to see pictures in a Gridview (I am kind of new to Asp.net) and, with some javascript, I see a pre-formated picture before the pics are retreived from database. I tried to put an animated GIF instead of a static one but the animated GIFF doesn't animate.
View 6 Replies
Nov 19, 2010
using vb.net 2005 and crystal reports. in the vb.net code I am querying the database, processing the results and then binding to the crystal report.
What I need to do now in the code is this: I need to create a new page to display the results so that there is one page for each row in the dataset that I'm binding to the report.
View 1 Replies
Oct 25, 2010
I have a report with 4 different variables await user input, these variable can be null but the problem I am having is since null is set to the default value for all of the variables the report will automatically generate itself when the user starts it.
Is there a way to halt auto generation so the user just sees the variables and the view report button other than setting one of the variables to not have a default value of null?
View 1 Replies
Aug 16, 2010
Dear, I want to stop sorting in cross tab report header. And also want to sort in specific order. How can i do that?
View 5 Replies
Jan 6, 2010
I know how to do paging of datalist
But my problem is that i want to do a paging with some animated effect such as sliding a datalist content while paging or any other effect but there has to be some animation.
View 6 Replies
Sep 21, 2010
I managed to see pictures in a Gridview (I am kind of new to Asp.net) and, with some javascript, I see a pre-formated picture before the pics are retreived from database.
I tried to put an animated GIF instead of a static one but the animated GIFF doesn't animate.
View 2 Replies
Jun 8, 2010
I am working with SSRS reports .I have one report called AllOrderDails with Order_No, Order_Date, Project_Name, Boiler_Name, RefNo, Total_NoItems, Total_GrossWeight, Expected_Date .It shows all order Details ,when i click Order_No it shows another report called OrderDetails.It shows only single Order_No details....In OrderDetails page i am using one textbox for back .It is for going back to AllOrderdetails.
My problem is when i click Order_No in AllOrderDetails page it's show OrderDetails page withrelated Order_No,when i click back it goes to AllOrderDetails Page but It's not displaying any data...
View 15 Replies
Mar 26, 2010
I have a list of buttons with an update panel underneath. When you click one of the buttons the update panel will refresh with different content. I have this working fine but I want to make it look nice with some jQuery animation so when you click the button the update panel refreshes and the content slides down.
Any javascript that I attach to the buttons seems to fire before the update panel is refreshed.
View 1 Replies
Jan 18, 2010
I have a form where the submit function takes several minutes. I'd like to display an animated gif while the submit is cranking. The code below shows the gif, but it doesn't move. What can I do to get it going?
<script type="text/javascript">
$(function() {
$("#submit").click(function() {
$("#wait").show();
[code]...
View 2 Replies
Aug 31, 2010
I'm using ASP.NET for a search app web site.My search retrieves exactly one result per fetch. Once the search is complete and the user selects "Update", a new result is fetched and the old result is written to the ViewState as a generic List. The new result replaces the old one.I am trying to get the page to update (via partial post-back), so that the old result drops down the screen and the new result sits on top of it. Much like the concept of a stack.
View 2 Replies
Mar 28, 2010
I wonder how the animated banners work. For example, I have a short animation for 5 seconds that fits a banner like on this site.How will I put that to a clickable control... what control is used to "play" this videoanimation in a loop ?
View 4 Replies
Sep 20, 2010
I'd like to display an animated gif after user presses a submit button which causes postback. I'm following Joe Stagner's tutorial
here. The page worked fine. But now that I've added the update panel around the button and then an update progress with a gif in it, the app doesn't run.
Now, when the button is pressed, the animated gif appears and runs for about three seconds or so (due to the artificial latency added as per the tutorial - System.Threading.Thread.Sleep(3000) ) and then it stops, nothing returns from the server.
What am I doing wrong and what am I not understanding with this Ajax process and the server?
(by the way I'm using the toolscript manager that came with the Ajax control toolkit, don't know if that matters)
[Code]....
View 4 Replies
Jan 18, 2010
I have a problem with an amimated gif inside an UpdateProgress which is linked to an UpdatePanel. Basically the gif displays for a few seconds then justs stops and then a few seconds later the page displays. Reading some other posts it and putting in some debug info I can guess it is because the postback is returning a lot of markup, so it seems the postback has stopped and the gif freezes while the markup is being sent/being rendered. Is there anyway to keep the gif 'running' while all this markup is doing its thing?
View 3 Replies
Mar 1, 2012
I have the following code at the bottom of my master page:-
Code:
<div id="overlay">
<asp:Image ID="Image1" runat="server" ImageUrl="~/Images/Disable.gif" style="width: 100%; height:100%; opacity:0.6;filter:alpha(opacity=60)"/>
<div id="IconImage">
<asp:Image ID="Image2" runat="server" ImageUrl="~/Images/loader.gif"/>
</div>
</div>
And here is my CSS:-
Code:
#overlay {
visibility: hidden;
position: absolute;
left: 0px;
top: 0px;
width:100%;
[Code] ....
Here is my javascript:-
Code:
function overlay() {
el = document.getElementById("overlay");
el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible";
}
And finally here is my code to trigger the overlay function which is called when I build my data:-
Code:
<asp:ImageButton ID="ImageButton1" runat="server" style="Height:50px; Width: 50px;" ImageUrl="~/Images/Printer.png" ToolTip="Print Report" OnClientClick="overlay()"/>
Everything works fine except my animated gif does not animate. If I load the gif in IE is animates.
View 5 Replies
Sep 15, 2010
I have the following code so it'll show an animated progress GIF but if the site takes longer than this, it will quit. Is there a more effective way?
[Code]....
View 6 Replies
Jul 19, 2010
I have an ASP.NET page that takes a long time to load due to the loading of multiple user controls. Is there a way where I can show a loading animation using jQuery while the page is loading?
View 4 Replies
Mar 23, 2011
I have 2 grid view Parent & child on parent gridview I have expand button inside item template. I want by click on parent expand button child gridview get open with animation. How to do this? I am using asp.net c sharp.
View 1 Replies
Feb 8, 2011
I am using imagemagick DLL [URL] for the resize image, But when I re-sized animated GIF image then it going screw.
I using below code for re-size image ( image type are png, gif, jpg, bmp, tif ...)
ImageMagickObject.MagickImage imgLarge = new ImageMagickObject.MagickImage();
object[] o = new object[] { strOrig, "-resize", size, "-gravity", "center", "-colorspace", "RGB", "-extent", "1024x768", strDestNw };
imgLarge.Convert(ref o);
View 1 Replies
May 7, 2015
I used modal popup in vs 2010 that is working fine. When user click on button modal popup comes up immediately , I want it comes in transition from top to middle so it looks good.
View 1 Replies
Jan 13, 2010
I implemented PreviousPage to get data from previous page for my search function and display the returned data into a gridview. The gridview's allowpaging is enabled, but every time I go to next page, my previous page data is lost... how can I resolve that?
View 19 Replies
Mar 11, 2011
How do display a list of data returned from the database like this.
[code]....
View 1 Replies
Aug 13, 2010
I have a gridview and would like to display one of 5 icons depending on the value returned from the database for that row (simply just A, B, C, D or E). Which event in my datagrid should I be looking at to check what value I'm getting? I presume once I can check a value I can simply set an image source using if statements?
View 4 Replies
Jul 22, 2010
Is it possible to bind data to specfic columns in Gridview?
I mean, if I send a query to my database and it returns 1 column, then bind that column to the first column in the gridview, then send another query and bind the resulting column from that query to the second column without erasing the data of the first column etc etc.
View 11 Replies
Sep 26, 2010
I am using a 5 file upload controls on my page within a Create User Wizard.
In a modal pop up extender, I have a animated ajax gif with a message
"loading"
When I submit the button (see code below )to send the form, the modal pop up shows up,but the image is not animated. If I put the button below in an update panel it works with animation. But if I add a twigger for the button as the file upload controls needs a postbackthe image is static again. Is there anywhere I can display an animated image in the modal pop up and still keep my existing code.?
ID="StepNextButton"
runat="server" [code]......
View 1 Replies