locked
getting error 'WinJS.Utilities.requireSupportedForProcessing'

    Question

  • Scenario - I wants to refresh the items displayed on split.html based on the search criteria implemented on AppBar. So i am doing this declarativly in event handler function

    I have attached function as event handler while 'click' of AppBar menu command.

    In function 

    {

    listView.itemDataSource = filteredItems.dataSource;

    }

    after this function got executed , getting exceptions of these :

    WinJS.Utilities.markSupportedForProcessing
      WinJS.Utilities.requireSupportedForProcessing;

    I binged this exception and , got info - needs to register the event handler with above two properties. But still i am getting the same exception. Please help me here.


    Thursday, July 18, 2013 8:15 AM

All replies

  • If you use declarative functions in HTML, you need to use markSupportedForProcessing in the JavaScript event handler code:

    For example (code is from one of the project templates):

    var util = WinJS.Utilities;

    section3ItemNavigate: util.markSupportedForProcessing(function (args) {
        // do stuff

        nav.navigate("/pages/item/item.html", { item: item });
    }),


    Thursday, October 24, 2013 9:03 PM