-
javascript client events
Does any one now just off hand know how to quickly capture all the events for all controls on ie & netscape. I want to be able to turn it off and then turn it back on by calling a method in client javascript before my page hits the server for postback.
I am doing a file upload and before it begins i want to disable the buttons on page so there will be no more clicking, and I want to re enable them after. These people do not understand click the button once. I am opening a new window with a animation and a message, and I close it after postback by calling a method the upload control regestiers with the page.
-
All events are handled by default through the Body element. You could insert a simple JS function that handles those events, and depending on whether a global js variable is set to true or false, capture the event by returning false, or allowing it continue down the chain by returning true. (or is it flip-flopped, lol, i don't remember off hand, false or true, or true or false...)