473,769 Members | 3,828 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to hide loading message (displayed with jquery)

2 New Member
i am using jquery to display a working... div to show the user that the query is doing something.
to show....
Expand|Select|Wrap|Line Numbers
  1.      Sys.Application.add_init(function() {
  2.       $addHandler($get('ctl00_ContentPlaceHolder1_LinkButtonQuickReport'), 'click', function() {
  3.         $('#working').show();
  4.       });
  5.     });
to hide...
Expand|Select|Wrap|Line Numbers
  1.       var prm = Sys.WebForms.PageRequestManager.getInstance();
  2.       prm.add_endRequest(function() {
  3.       $('#working').hide();
  4.     });
this works fine when the data is displayed in the gridview. but the user has the option to automatically start a download if the dataset has more than x rows.
the function zips the results to a file and then uses response.transm itefile to start the download. the problem is that the endrequest is never kicked off because of the download, so i am left with the loading message still displayed on the screen. a refresh takes care of it but then all the options set on the page go back to default plus that is just annoying :-).
how do i remove the working div when the user gets an automatic download?
is there a better way to display a working msg than this? i was using updateprogress with updatepanel around the gridview but the response.transm itefile doesnt work.
any help is greatly appreciated
Aug 31 '09 #1
3 4033
Frinavale
9,735 Recognized Expert Moderator Expert
The reason your not hitting the end request is because you're not sending back HTML to the browser...so Ajax can't do it's thing to update the portion of the page that needs to be updated.

What I recommend is preparing the zip file when you make the Ajax request and upon returning (in the end request) set a hidden iFrame's source to another ASPX page that will use the Response.Transm itFile() to send the file to the browser. (This means that you'll have to create another ASPX page that will simply return the prepared zip file.)

-Frinny
Sep 1 '09 #2
jmeyer5csc
2 New Member
works great thanks a bunch.
jeff
Sep 2 '09 #3
Frinavale
9,735 Recognized Expert Moderator Expert
Awesome :) Glad it worked for you :)

-Frinny
Sep 2 '09 #4

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

Similar topics

13
4526
by: Matt | last post by:
Does anyone know how to hide the ASPX extension of web pages in ASP.Net 2.0? Thanks, Matt
1
1509
by: Heinz K | last post by:
Hi all, using asp.net 2.0 I have some fields which should only be displayed under some circumstances, otherwise I hide them. This works fine. But the data is displayed in a table with 5 rows, and all fields within these rows are hidden. Is it now also possible to hide the complete table so it's not displayed in the HTML anymore? Otherwise I still have some whitespace which is a little bit ugly as every user wonders why there are empty...
2
1829
by: Curious | last post by:
There's a problem with what is displayed on a tab in my UI. At first, it's a message, "loading...". Then it should be replaced with the actual file name on the tab. Now the issue is that it takes a long time before the message "loading..." is replaced by file name. In my debugger, the switch between "loading..." and file name happens AFTER the last line of code below: void LoadReportFilesWorker_RunWorkerCompleted(object sender,
1
1412
by: Faraz.ya | last post by:
Hi, When I include an image in a div and add a sliding hide effect on the div to close it, my image in the div don't disappear in internet explorer. I think it's the best if you take a look at: http://mkweb123.web.aplus.net/kayaks.php to see exactly what I mean. If you click on the first boat ( the yellow one) and then click on another boat, the image under the yellow boat stays on top. Can somebody help?
7
4672
by: somnamblst | last post by:
I am using jQuery & hideAllExcept.js from this demo tute http://enure.net/dev/hide-all-except-one/ The issue is that on a page with other content, the images I have placed in the toggleThis divs loads before everything is ready and they briefly appear stacked below, before disappearing when they snap into place. hiddeAllExcept.js does use $(document).ready(function() { I had this same issue with jCarousel, only the dynamically loaded...
1
2319
by: somnamblst | last post by:
This function swaps images between a close & replay GIF. Line 12 has a speed of 1 second specified for the slideDown, but no speed specified for the slideUp so it is defaulting to normal. I tried adding if(!isDown) slideTimeout = setTimeout(toggleSlideboxes, 3000 : 1000); to line 21 but ended up with a syntax error. jQuery.noConflict(); jQuery(document).ready(function(){ var slideTimeout //timer , sbTrigger =...
53
8416
by: souporpower | last post by:
Hello All I am trying to activate a link using Jquery. Here is my code; <html> <head> <script type="text/javascript" src="../../resources/js/ jquery-1.2.6.js"</script> <script language="javascript" type="text/javascript">
6
8620
by: aaronkmar | last post by:
Trying to get a loading image to spin while the query is loading. I can get the data div to fade in, but I can't seem to figure out how to get the gif while the query is loading. I'm using two divs.. id "entrytext" is where the data will load into and has a display:none contentLoading is the loading gif div.
0
9579
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10205
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
10035
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
7401
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5293
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
5441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3949
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
3556
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2811
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.