By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,730 Members | 1,620 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,730 IT Pros & Developers. It's quick & easy.

Display message

P: 17
I have a page on my web site that when i click on it, performs a series of operations. I'd like that when i click it, a message saying for instance, "Please Wait", appears and only disappears when the operations finishes.
Is it possible to display a message, it could be on a new popup form, and the code is still running?

Dec 4 '06 #1
Share this Question
Share on Google+
1 Reply

P: 23
A javascript alert will stop everything, so a div that looks like pop-up is a better choice.

Expand|Select|Wrap|Line Numbers
  1. <body>
  2. <div id="d_popup" style="display: none; width: 150px; height: 80px; left: 50%; top: 50%; margin-left: -75px; margin-top: -40px; position: absolute;">
  3. Please wait...
  4. </div>
  6. <script type="text/javascript">
  7. document.getElementById("d_popup").style.display = "";
  8. // do your job here
  9. document.getElementById("d_popup").style.display = "none";
  10. </script>
  11. </body>
I leave the design to you :)
Dec 4 '06 #2

Post your reply

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