{"id":174,"date":"2010-04-30T20:40:06","date_gmt":"2010-04-30T10:40:06","guid":{"rendered":"http:\/\/chuchuva.com\/pavel\/?p=174"},"modified":"2010-04-30T16:02:57","modified_gmt":"2010-04-30T06:02:57","slug":"jquery-bbq-plugin-and-internet-explorer-7","status":"publish","type":"post","link":"https:\/\/chuchuva.com\/pavel\/2010\/04\/jquery-bbq-plugin-and-internet-explorer-7\/","title":{"rendered":"jQuery BBQ plugin and Internet Explorer 7"},"content":{"rendered":"<p>Remember the problem with jQuery BBQ plugin in Internet Explorer 7? It&#8217;s not really a problem, just a minor glitch but let&#8217;s fix it anyway.<\/p>\n<p>Steps to reproduce:<\/p>\n<ol>\n<li>Open <a href=\"http:\/\/chuchuva.com\/demo\/jquery-bbq\/\">BBQ demo<\/a> in Internet Explorer<\/li>\n<li>Click Next button few times<\/li>\n<li>Open history menu<\/li>\n<\/ol>\n<p>Observe:<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"170\" data-permalink=\"https:\/\/chuchuva.com\/pavel\/2010\/04\/using-jquery-bbq-plugin-for-photo-gallery\/bbq-ie7\/\" data-orig-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2010\/04\/bbq-ie7.png?fit=336%2C231&amp;ssl=1\" data-orig-size=\"336,231\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"bbq-ie7\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2010\/04\/bbq-ie7.png?fit=300%2C206&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2010\/04\/bbq-ie7.png?fit=336%2C231&amp;ssl=1\" class=\"alignnone size-full wp-image-170\" src=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2010\/04\/bbq-ie7.png?resize=336%2C231\" alt=\"\" width=\"336\" height=\"231\" srcset=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2010\/04\/bbq-ie7.png?w=336&amp;ssl=1 336w, https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2010\/04\/bbq-ie7.png?resize=300%2C206&amp;ssl=1 300w\" sizes=\"auto, (max-width: 336px) 100vw, 336px\" \/><\/p>\n<p>No page titles, just URLs. Definitely it would be nice to see photo numbers there.<\/p>\n<p>First, let&#8217;s see how <a href=\"http:\/\/www.asual.com\/jquery\/address\/\">Asual jQuery Address<\/a> fix this problem:<\/p>\n<pre><code class=\"prettyprint\">_title = _d.title = value;\r\nif (_juststart && _frame && _frame.contentWindow && \r\n    _frame.contentWindow.document) {\r\n    _frame.contentWindow.document.title = value;\r\n    _juststart = FALSE;\r\n}\r\n<\/code><\/pre>\n<p>Aha! For IE7 you need to set title of the hidden iframe in addition to setting document title. So this is how you set page title:<\/p>\n<pre><code class=\"prettyprint\">document.title = \"New title\";\r\nvar iframe = $(\"iframe:hidden\");\r\nif (iframe.length > 0 && iframe[0].contentWindow && iframe[0].contentWindow.document)\r\n  iframe[0].contentWindow.document.title = \"New title\";\r\n<\/code><\/pre>\n<p><a href=\"http:\/\/chuchuva.com\/demo\/jquery-bbq\/fix-for-ie7.html\">Updated demo<\/a> should work correctly in Internet Explorer 7.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Remember the problem with jQuery BBQ plugin in Internet Explorer 7? It&#8217;s not really a problem, just a minor glitch but let&#8217;s fix it anyway. Steps to reproduce: Open BBQ demo in Internet Explorer Click Next button few times Open history menu Observe: No page titles, just URLs. Definitely it would be nice to see &hellip; <a href=\"https:\/\/chuchuva.com\/pavel\/2010\/04\/jquery-bbq-plugin-and-internet-explorer-7\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">jQuery BBQ plugin and Internet Explorer 7<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[8],"tags":[11],"class_list":["post-174","post","type-post","status-publish","format-standard","hentry","category-develop","tag-jquery"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/posts\/174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/comments?post=174"}],"version-history":[{"count":0,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/posts\/174\/revisions"}],"wp:attachment":[{"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/media?parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/categories?post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/tags?post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}