{"id":21,"date":"2009-06-12T10:24:56","date_gmt":"2009-06-12T10:24:56","guid":{"rendered":"https:\/\/adeelejaz.com\/blog\/?p=21"},"modified":"2016-01-10T03:31:10","modified_gmt":"2016-01-10T03:31:10","slug":"addthis-internet-explorer-and-javascript","status":"publish","type":"post","link":"https:\/\/adeelejaz.com\/blog\/addthis-internet-explorer-and-javascript\/","title":{"rendered":"AddThis, Internet Explorer and JavaScript"},"content":{"rendered":"<p>While working with Internet Explorer 7, I got this error:<\/p>\n<pre>Object doesn't support this property or method\r\nLine: 2\r\nChar: 13907\r\nURI: addthis.com\/js\/250\/addthis_widget.js<\/pre>\n<p>The thing that hurt more was, Chrome and Firefox were behaving properly. I spent some time searching\u00a0the error but found nothing interesting. I gave up on that front and decided to have a peek in the AddThis JavaScript.<\/p>\n<p>A bit more look around, I found something very interesting. IE7 has some scoping issue and it was picking up &#8216;my&#8217; variable instead of AddThis counterpart (in my case it was variable called &#8220;c&#8221; that I had declared in my own JavaScript that was causing the problem).<\/p>\n<p>Change the variable in your own JavaScript code to anything else and we all can live happily ever after.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content --><p class=\"wp-flattr-button\"><a href=\"https:\/\/adeelejaz.com\/blog\/?flattrss_redirect&amp;id=21&amp;md5=6f396cba77a6c19db04dea0ef37a3b0a\" title=\"Flattr\" target=\"_blank\"><img src=\"https:\/\/adeelejaz.com\/blog\/wp-content\/plugins\/flattr\/img\/flattr-badge-white.png\" srcset=\"https:\/\/adeelejaz.com\/blog\/wp-content\/plugins\/flattr\/img\/flattr-badge-white.png, https:\/\/adeelejaz.com\/blog\/wp-content\/plugins\/flattr\/img\/flattr-badge-white@2x.png 2xhttps:\/\/adeelejaz.com\/blog\/wp-content\/plugins\/flattr\/img\/flattr-badge-white.png, https:\/\/adeelejaz.com\/blog\/wp-content\/plugins\/flattr\/img\/flattr-badge-white@3x.png 3x\" alt=\"Flattr this!\"\/><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>While working with Internet Explorer 7, I got this error: Object doesn&#8217;t support this property or method Line: 2 Char: 13907 URI: addthis.com\/js\/250\/addthis_widget.js The thing that hurt more was, Chrome and Firefox were behaving properly. I spent some time searching\u00a0the error but found nothing interesting. I gave up on that front and decided to have [&hellip;]<!-- AddThis Advanced Settings generic via filter on wp_trim_excerpt --><!-- AddThis Share Buttons generic via filter on wp_trim_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-21","post","type-post","status-publish","format-standard","hentry","category-bugs"],"_links":{"self":[{"href":"https:\/\/adeelejaz.com\/blog\/wp-json\/wp\/v2\/posts\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adeelejaz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adeelejaz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adeelejaz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/adeelejaz.com\/blog\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":1,"href":"https:\/\/adeelejaz.com\/blog\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":22,"href":"https:\/\/adeelejaz.com\/blog\/wp-json\/wp\/v2\/posts\/21\/revisions\/22"}],"wp:attachment":[{"href":"https:\/\/adeelejaz.com\/blog\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adeelejaz.com\/blog\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adeelejaz.com\/blog\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}