I am not sure is this place to post this. may in JavaScript section. My requirement is that I have to disable user input like clicking menu links when some functionality in the website is going on .


in better words, when user Upload a large file, it will show a progress bar, until this finish. I need to disable that user cannot click on other menu links. Either I need to grey up the menu or disabling the mouse click until this uploading finish.

How can I achieve this functionality. my website is built on php. Is there any php code for this? or I need to use Javascript??

thanx for any help.

One option is to use a while in JavaScript with a boolean to indicate an upload is being carried out:

while (uploading = true)
{
document.getElementById("123").disabled = true; or
document.theForm.theButton.disabled;
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.