HTML5 template Element Tutorial JavaScript Programming




Lesson Code: http://www.developphp.com/video/HTML/HTML-template-Element-Tutorial-JavaScript-Programming
Learn how to use the HTML5 template element. The template element is used to clone HTML fragments using JavaScript, Ajax and JSON after the page has loaded. PHP and MySQL can be tapped into via Ajax requests, and JSON format data that reflects your database content can be returned to your application.

Original source


18 responses to “HTML5 template Element Tutorial JavaScript Programming”

  1. Instead of writing a for loop and doing all sorts of manual work why don't you simply use the repeat attribute and do an automatic template binding?
    So that when the model is updated the view changes automatically.

  2. thank you adam again, you gain fame and i gain knowledge. kep the videos coming, i have no better teacher. i have watched a LOT! of youtube tutorials. your explanations are the most clear.  wheres the beef!

  3. Thx Adam, interesting as always!

    63.85% global reach IE and Opera Mini not working, rest does…
    http://caniuse.com/#search=template 

    I dont think that IE will catch up ever enough.
    We developers should start to boycot it by simply showing a note to the user
    "Please download a modern browser" instead of losing hours and hours for IE-workarounds.

    Maybe they catch up when they lose market. Ah, they already do? Well…

  4. pretty sweet, I wonder how this benchmarks vs. concatenating a string with innerhtml and creating elements. I was pretty surprised when I benchmarked concatenating innerhtml vs createElement. concatenating won… hands down

  5. Seems like a redundant tag.
    And the way its used in the example, means you have to modify both the template and the code, if you for example want to add/remove/change tags.

Leave a Reply