locked
WinJS Disable Click

    Question

  • Hello,

    I would like to disable click for the special DIV for a certain amount of time.

    I've tried it with $('#myDiv').unbind('click'); but that doesn't work.

    Thanks.

    Saturday, September 7, 2013 11:04 PM

Answers

  • Hi, vadimmelnyk

    In WinJS, you can use Promise.removeEventListener method. Refer to this link below:

    http://msdn.microsoft.com/en-us/library/windows/apps/br211869.aspx

    Best Wishes!


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by vadimmelnyk Monday, September 9, 2013 9:33 AM
    Monday, September 9, 2013 9:25 AM

All replies

  • Hi, vadimmelnyk

    In WinJS, you can use Promise.removeEventListener method. Refer to this link below:

    http://msdn.microsoft.com/en-us/library/windows/apps/br211869.aspx

    Best Wishes!


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by vadimmelnyk Monday, September 9, 2013 9:33 AM
    Monday, September 9, 2013 9:25 AM
  • Thanks, Anne!
    • Edited by vadimmelnyk Monday, September 9, 2013 9:34 AM
    Monday, September 9, 2013 9:33 AM