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”
so this is the manual way of using Pug's includes and sass's imports?
Does that work with Internet Explorer already?
Good luck finding a 23-year-old named Klaus in Germany these days.
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.
Hi Adam
I love your tutorials. Can you please post some tutorial videos about "brackets text editor", it'll help me lot when i'll learn it….
querySelector..best thing since slice bread for non-jquery users! 🙂 Thanks Adam for the video!
4:38.. Internet Explorer is GARBAGE Adam! Just say it already! Haha
Adam sos el Dios del js !!!!! excelente tutorial, lastima que cuesta un poco con el idioma.
Saludos
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!
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…
what editor do you use for html and javascript?
I am amazed by you
Great tutorial. Thank you
Thank you sir, for another intersting tutorial!!
I like that idea. But, since IE is a PITA I end up using jQuery templating.
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
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.
So is the Template element not actually rendering to the page?
is it just me or am i hearing most of the sound from my left speaker?
Excelente vídeo, saludos desde Tijuana México