Results 1 to 2 of 2

Thread: javascript client events

  1. #1

    Thread Starter
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267

    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.
    Magiaus

    If I helped give me some points.

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    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...)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width