{"id":1010,"date":"2008-12-26T21:53:07","date_gmt":"2008-12-26T20:53:07","guid":{"rendered":"http:\/\/blog.ginchen.de\/?p=1010"},"modified":"2010-01-17T08:37:10","modified_gmt":"2010-01-17T06:37:10","slug":"objekt-wird-im-firefox-nicht-angezeigt","status":"publish","type":"post","link":"http:\/\/blog.ginchen.de\/en\/2008\/12\/26\/objekt-wird-im-firefox-nicht-angezeigt\/","title":{"rendered":"Object not showing up in Firefox?"},"content":{"rendered":"<p>When converting my site to XHTML, the WordPress plugin &#8220;WP GuestMap&#8221; posed another little obstacle. It is the plugin that I use on the &#8220;Visitors&#8221; page to display the world map with the hometowns of all visitors.<br \/>\r\nUntil now, I had implemented the map via IFrame. Although the plugin does offer a code snippet for XHTML-conform embedding as an object, it just didn&#8217;t work in Firefox: Instead of a map, it displayed &#8211; nothing. The code looked as follows:<\/p>\r\n\r\n<pre lang=\"html4strict\">\r\n<object classid=\"clsid:25336920-03F9-11CF-8FD0-00AA00686F13\" type=\"text\/html\" data=\"http:\/\/www.domain.com\/a-html-page.html\"><\/object>\r\n<\/pre>\r\n\r\n\r\n<!--more-->\r\n\r\n\r\n\r\n\r\n<p>After I had finally struggled through an article on AListApart.com:&#8221;Flash Satay: Embedding Flash While Supporting Standards(AListApart.com)&#8221;:http:\/\/www.alistapart.com\/stories\/flashsatay that I had delayed reading for weeks already, I knew what the snag was: It was the attribute <code>classid<\/code> that caused the trouble!<\/p>\r\n\r\n<blockquote>\r\n<p>(&#8230;) the GUID used in the classid attribute was specific to the browser\u2019s ActiveX configuration. In fact, it was causing Netscape 7 and Mozilla to totally ignore the object.<\/p>\r\n<\/blockquote>\r\n\r\n<p>To say it clearly: <code>classid<\/code> is only for Internet Explorer, to let it know which player\/program it should use to play back\/display the object. There is, however, another attribute for the very same purpose which is understood by all browsers, namely the <code>type<\/code> attribute. As you can see, the code generated by &#8220;WP GuestMap&#8221; already contains a <code>type<\/code> declaration. So what&#8217;s the point of the totally superfluous <code>classid<\/code>? Hence with it!<\/p>\r\n\r\n<pre lang=\"html4strict\">\r\n<object type=\"text\/html\" data=\"http:\/\/www.domain.com\/a-html-page.html\"><\/object>\r\n<\/pre>\r\n\r\n<p>And now it works in Firefox, too! This little knack is not only helpful with HTML objects like this one, but with all the others as well. Only the <code>type<\/code> statement must be changed. For a Flash object for example, it would have to be <code>type=\"application\/x-shockwave-flash\"<\/code>.<\/p>","protected":false},"excerpt":{"rendered":"When converting my site to XHTML, the WordPress plugin &#8220;WP GuestMap&#8221; posed another little obstacle. It is the plugin that I use on the &#8220;Visitors&#8221; page to display the world map with the hometowns of all visitors. Until now, I had implemented the map via IFrame. Although the plugin does offer a code snippet for [&hellip;]","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[128,139,76],"tags":[182,53,137,181,144,183,606,428,152],"_links":{"self":[{"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/posts\/1010"}],"collection":[{"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/comments?post=1010"}],"version-history":[{"count":17,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/posts\/1010\/revisions"}],"predecessor-version":[{"id":2999,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/posts\/1010\/revisions\/2999"}],"wp:attachment":[{"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/media?parent=1010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/categories?post=1010"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/tags?post=1010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}