WordPress.org

Support

Support » Plugins and Hacks » Not showing in IE9

Not showing in IE9

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Stefan Boonstra
    Member

    @stefanboonstra

    Hi Steve,

    Internet Explorer seems to suffer from an error generated in Digg’s buttons.js file. Somehow the other browser don’t seem to be affected by it.

    The code causing the error is in your <head> section, and looks like this:

    <script type="text/javascript">
    (function() {
    	var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
    	s.type = 'text/javascript';
    	s.async = true;
    	s.src = 'http://widgets.digg.com/buttons.js';
    	s1.parentNode.insertBefore(s, s1);
    })();
    </script>

    If you could wrap it in an HTML ‘IF’ statement, effectively excluding Internet Explorer from that code, the error should disappear.

    The ‘IF’ statement around the code should look like this:

    <!--[if !IE]>
    <script type="text/javascript">
    (function() {
    	var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
    	s.type = 'text/javascript';
    	s.async = true;
    	s.src = 'http://widgets.digg.com/buttons.js';
    	s1.parentNode.insertBefore(s, s1);
    })();
    </script>
    <![endif]-->

    If that doesn’t work, you could simply delete the code to solve the problem.

    Best regards,
    Stefan

    Thanks Stefan, however I cannot find that code anywhere in the editor. Am i looking in the wrong place?

    Plugin Author Stefan Boonstra
    Member

    @stefanboonstra

    You should be able to find it somewhere in your theme, either in the header or the footer. Otherwise it may be a plugin that outputs it.

    Hey Stefan,

    I’ve the same problem, only with IE9, but this piece of code doesn’t appear in my page. (www.pack-net.es). What else may I do?

    Thanks!

    Plugin Author Stefan Boonstra
    Member

    @stefanboonstra

    Hi,

    Your slideshow seems to be working just fine in IE9.

    Best regards,
    Stefan

    Thanks for the answer, but actually it’s not working..
    Instead of a single slider, there is like one first slider (that you can’t change the image), and just below, there is other slider that is changing the images..

    The correct way should be just one slider with the side arrows to change the image.

    In all the other browsers work fine (even with IE7, IE8 and IE10).

    Thank you!

    Plugin Author Stefan Boonstra
    Member

    @stefanboonstra

    I’m sorry, you’re right. I see you’ve wrapped the slideshow in an ‘<h2>’ and ‘<i>’ tag. Internet Explorer can’t always render this properly, as not officially valid HTML. If you remove the tags from around the slideshow, Internet Explorer 9 should show the slideshow correctly.

    Thank you Stefan! I hadn’t noticed the mistake.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Not showing in IE9’ is closed to new replies.