Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Disable Page on submit

Posted on 2006-05-10
3
Medium Priority
?
195 Views
Last Modified: 2008-01-16
How would I (what is the code) disable an entire page when someone click a submit button.Then enable it again after it processes the data. (The page then reloads)

I've seen it where you show a progress icon rotating and grey out the page so you can see everything although you can't do anything untill the process finishes.

Can anyone show me how this is done?


-j
0
Comment
Question by:JsonTerre1
1 Comment
 
LVL 6

Accepted Solution

by:
fizch earned 800 total points
ID: 16653420
You will have to use javascript to disable the form. It's easy enough. You just set the form's disabled property to true.

function btnSubmit_onClick(){
   Form1.disabled = true;
   return true;
}

You'll want to do the opposite on page load:
function page_onLoad(){
   Form1.disabled = false;
   return true;
}


As far as putting in a "progress icon," you will want to create an animated gif. Put it in the document using the image tags. Only you will want to position it and hide it using CSS. Make sure to give the image tag an id so that you can reference it, and just show it after you disable the form.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Integration Management Part 2
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question