{"id":60,"date":"2014-04-03T22:37:54","date_gmt":"2014-04-03T22:37:54","guid":{"rendered":"http:\/\/html5box.com\/blog\/?p=60"},"modified":"2014-04-03T22:40:06","modified_gmt":"2014-04-03T22:40:06","slug":"dynamically-edit-html5-gallery-play-list","status":"publish","type":"post","link":"https:\/\/html5box.com\/blog\/jquery-photo-gallery-tutorial\/dynamically-edit-html5-gallery-play-list\/","title":{"rendered":"Dynamically edit HTML5 Gallery play list"},"content":{"rendered":"<p><strong>Question<\/strong>:<\/p>\n<p>I was using your product today. I found it very interesting . However I have noticed the images and videos added \u00a0dynamically to the div tag hosting the plugin do not get rendered. The div tag shows blank.<\/p>\n<p><strong>Answer<\/strong>:<\/p>\n<p>You can view this tutorial: <a title=\"HTML5 Gallery Tutorial\" href=\"http:\/\/html5box.com\/html5gallery\/initialize.php\" target=\"_blank\">http:\/\/html5box.com\/html5gallery\/initialize.php<\/a><\/p>\n<p>The idea is, do not add the class name <strong>html5gallery<\/strong> to the div, use an id instead. Like following:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;div id=&quot;mygallery1&quot; data-skin=&quot;gallery&quot; data-width=&quot;480&quot; data-height=&quot;270&quot; style=&quot;display:none;&quot;&gt;&lt;\/div&gt;\r\n<\/pre>\n<p>Then every time you dynamically update the playlist, you can call the JavaScript function to re-initialise the gallery and reload the images\/videos list:<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n$(&quot;#mygallery1&quot;).html5gallery();\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Question: I was using your product today. I found it very interesting . However I have noticed the images and videos added \u00a0dynamically to the div tag hosting the plugin do not get rendered. The div tag shows blank. Answer: You can view this tutorial: http:\/\/html5box.com\/html5gallery\/initialize.php The idea is, do not add the class name &hellip; <a href=\"https:\/\/html5box.com\/blog\/jquery-photo-gallery-tutorial\/dynamically-edit-html5-gallery-play-list\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Dynamically edit HTML5 Gallery play list<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-60","post","type-post","status-publish","format-standard","hentry","category-jquery-photo-gallery-tutorial"],"_links":{"self":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts\/60","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/comments?post=60"}],"version-history":[{"count":7,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts\/60\/revisions"}],"predecessor-version":[{"id":75,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts\/60\/revisions\/75"}],"wp:attachment":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/media?parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/categories?post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/tags?post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}