Windows Store apps for Absolute Beginners with JavaScript

Part 5: Quick Tour of WinJS (2 of 2)

Download this episode

Download Video

Download captions

Download Captions

Description

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

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • 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')}" ....

    • 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!

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

    • 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?

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.