Sign in to queue

Description

Continuing on our exploration of WinJS, we look at Lists, binding ListViews to Lists, adding an App Bar, and more.

Embed

Download

The Discussion

  • User profile image
    Cloud

    i'm having thes problem her :
    Exception is about to be caught by JavaScript library code at line 20074, column 9 in ms-appx://microsoft.winjs.1.0/js/ui.js

    0x800a138f - JavaScript runtime error: Object expected

    when i use the data-win-options="{ itemTemplate : select('.mytemplate')}" ....

  • User profile image
    BobTabor

    @Cloud: I may need to see more code.  Can you point me to the exact part of the Hands On Lab (Lab, Lesson and Task) where you added this?  Did you type it in by hand?  Or copy and paste it from the lesson text?  I'll try to help if I can but I need as much information as you can throw my way.  thanks!

  • User profile image
    Bomar

    I'm curious why my HelloWorld crashes when I insert a closing '>' to my button in the default.html <div data-win-control="WinJS.UI.AppBar">  section

    The app runs fine without it, as I noticed it did in your demo too. But  the HTML5 Validation complains about the missing >

    Great series. Thank you.

  • User profile image
    BobTabor

    @Bomar: It is self-enclosing, right?  In other words, it uses the /> not just the > on the end of the <div ... right?

    Ultimately, WinJS strips out that div and replaces it with the control AppBar (which is more HTML and JavaScript).  That's more of an "internals of WinJS" topic ... not sure HOW it does it ... maybe that helps a little?

Add Your 2 Cents