Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Handlebars Error – this._input is undefined

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #189582
    GSG
    Participant

    I’m learning Handlebars and my FireBug throws this error:

    TypeError: this._input is undefined

    http://codepen.io/gsg/pen/zxvKjo

    I tried to place the Handlebar script both in head and in the body, but the same result occurs.

    #189713
    jamygolden
    Member

    I did some small tweaks to fix up your problem. (http://codepen.io/jamygolden/pen/VYvMqJ)[http://codepen.io/jamygolden/pen/VYvMqJ]

    I linked jQuery and handlebars correctly. It was 404ing on your pen. I then also changed $("shoe-template").html() to $("#shoe-template").html() – I added the hash for the ID.

    Now it seems to be working.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.