
{"id":293,"date":"2009-09-16T22:24:43","date_gmt":"2009-09-17T02:24:43","guid":{"rendered":"http:\/\/www.ikriv.com\/blog\/?p=293"},"modified":"2009-09-16T22:24:43","modified_gmt":"2009-09-17T02:24:43","slug":"dynamically-adding-new-flash-objects-to-your-page","status":"publish","type":"post","link":"https:\/\/ikriv.com\/blog\/?p=293","title":{"rendered":"Dynamically Adding New Flash Objects to Your Page"},"content":{"rendered":"<p>Back in the days of a now dormant Internet startup, we ran into an issue of how to dynamically add new objects (Flash or otherwise) to your page. If you simply do <code>document.write()<\/code> with some <code>&lt;object&gt;<\/code> tags in it, it does not work. The browser refuses to interpret new object tags.<\/p>\n<p>However, there is a twist. It turns out you can add new iframes in JavaScript. You, a seasoned web developer, probably new it for years, but I discovered it by accident while trying to fight weird behavior of one of the popular social networks. Anyhow, you can add iframes dynamically, and these iframes may contain flash movies.<\/p>\n<p>Here&#8217;s is <a href=\"http:\/\/www.ikriv.com\/demo\/DynamicFlash\/\">an example<\/a> that I wrote using a little PHP. Enjoy! If this sounds very trivial, I am sorry, us mere mortals sometimes have their &#8216;aha&#8217; moments they do enjoy \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Back in the days of a now dormant Internet startup, we ran into an issue of how to dynamically add new objects (Flash or otherwise) to your page. If you <a href=\"https:\/\/ikriv.com\/blog\/?p=293\" class=\"more-link\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":"","footnotes":""},"categories":[15],"tags":[],"class_list":["entry","author-ikriv","post-293","post","type-post","status-publish","format-standard","category-webdev"],"_links":{"self":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=293"}],"version-history":[{"count":0,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/293\/revisions"}],"wp:attachment":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}