473,505 Members | 15,212 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Trigger event on file download popup

1 New Member
Hi All,

I'm facing some problem with javascript events.
My application displays an hour glass on document.onstop.
I want an event to be triggered when a file download option pops up so that the hour glass is hidden.

Any help in this regards will b appreciated.
Is there any other way of calling the hour glass function(other than document.onstop) ??

Thanks,
Joslin
Feb 17 '09 #1
3 4145
acoder
16,027 Recognized Expert Moderator MVP
I don't think you can trigger something when the download alert displays.

To display an hour glass, change the cursor of the body to "wait". See this link.
Feb 17 '09 #2
gaya3
184 New Member
@joslin
Joslin,
you can also have the following sample

Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2.  
  3. // Changes the cursor to an hourglass
  4. function cursor_wait() {
  5. document.body.style.cursor = 'wait';
  6. }
  7.  
  8. // Returns the cursor to the default pointer
  9. function cursor_clear() {
  10. document.body.style.cursor = 'default';
  11. }
  12.  
  13. // Does some arduous calculation
  14. function calc() {
  15. var dummy = 0;
  16.  
  17. for (var i=0; i<1000000;i++) {
  18. for (var z=0; i<1000000;i++) {
  19. dummy = dummy + z + i;
  20. }
  21. }
  22.  
  23. cursor_clear();
  24. }
  25.  
  26. </script>
Feb 23 '09 #3
acoder
16,027 Recognized Expert Moderator MVP
That doesn't answer the question of the event being triggered when the file download pops up. Maybe the cursor could be changed when the link is clicked and changed back when the window receives focus again.
Feb 24 '09 #4

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

Similar topics

1
3635
by: dany | last post by:
Wrote a script (tried to;) which should force to download a pdf-file, but it doesn't work on every browser. What should be changed ? SCRIPT: --------- <% Dim Stream Dim Contents
3
10120
by: BOHICA | last post by:
I would like on my page when users click one of my mp3 files for the dialog box to pop up so they can choose to save the file to disk instead of trying to open through IE, but the dang thing won't...
2
1745
by: rmorvay | last post by:
Do to the complexities of the amount of data that I have in a single record for a datagrid, I allow users to click a datagrid row and it spawns another browser page to allow edits to the data in...
1
1293
by: alocin | last post by:
in my aspx page's page_load i got: Dim imageData() As Byte=allegato Response.ClearContent() Response.ClearHeaders() Response.AppendHeader("Content-Length", imageData.Length.ToString)...
2
1075
by: Rani | last post by:
Hi guys i would like to add a file download capebility to my website how do i do that ? currently i have few pages on my web site and would like add a regulation file for the users to download....
3
2122
by: tshad | last post by:
I have a function that downloads a file to the users computer and it works fine. The problem is that I then want the program to rename the file (file.move) to the same name plus todays date. ...
1
2730
by: test | last post by:
I'm trying to develop a small inhouse file download tool I need to detect all files downloaded from internetexplorer and display a custom interface i.e. when ever the user tries to download a file...
0
1499
by: bill | last post by:
Hi All, I have built an application that allows a user to download a file from the server. I would like to come up with a solution that works with all html standard compliant browsers in...
4
4554
by: =?Utf-8?B?Sm9hbyBSZWdv?= | last post by:
Hello, Using asp.net 2.0, C# and IE7 I'm using window.showModalDialog to open a modal window on the client from Javascript. I have to include this line in the < HEAD html of the modal window:...
0
7216
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,...
0
7098
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...
0
7367
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...
1
7018
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...
0
5613
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,...
1
5028
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...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1528
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 ...
0
407
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...

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.