{"id":3234437,"date":"2012-12-01T14:49:57","date_gmt":"2012-12-01T14:49:57","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/javascript-conflictproblem\/"},"modified":"2016-08-20T18:19:26","modified_gmt":"2016-08-20T18:19:26","slug":"javascript-conflictproblem","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/javascript-conflictproblem\/","title":{"rendered":"Javascript conflict\/problem"},"content":{"rendered":"<p>I love the plugin and find it an invaluable debugging aid but am now unable to use it due to what I believe is a javascript conflict (it&#8217;s certainly a JS issue). <\/p>\n<p>Here&#8217;s what happens:<\/p>\n<ul>\n<li>Load the page and the blackbox menu shows up as expected<\/li>\n<li>Click on one of the menu tabs. Nothing happens.<\/li>\n<\/ul>\n<p>I&#8217;ve looked under the hood at the browsers debugger and I see that every time I click on the link I get the following JS error:<\/p>\n<blockquote>\n<p>Uncaught TypeError: Cannot read property &#8216;style&#8217; of null\n<\/p>\n<\/blockquote>\n<p>The code that this points to is in the WpDebugBar&#8217;s SwitchPanel function:<\/p>\n<pre><code>switchPanel: function(open) {\n\n        for(var i in WpDebugBar.element) {\n            document.getElementById(&quot;blackbox-&quot;+WpDebugBar.element[i]).style.display = &quot;none&quot;;\nUncaught TypeError: Cannot read property &#039;style&#039; of null\n        }<\/code><\/pre>\n<p>https:\/\/wordpress.org\/extend\/plugins\/blackbox-debug-bar\/<\/p>\n","protected":false},"template":"","class_list":["post-3234437","topic","type-topic","status-closed","hentry","topic-tag-js","topic-tag-problem"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3234437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3234437\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=3234437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}