WordPress.org

Ready to get started?Download WordPress

Forums

Reaction Buttons
Reaction buttons causing webpage error in IE8 (2 posts)

  1. C M C
    Member
    Posted 4 years ago #

    I wanted to know if someone could take a quick look at my site . Ever since I've installed the reaction buttons, I've been getting a webpage error in IE8 as the browser.

    The webpage details are:

    Message: Object required
    Line: 53
    Char: 3
    Code: 0
    URI: http://aprama.com

    I think this particular code is the problem:

    <script type='text/javascript'><!--
    function prepare_attr_jl(str) {
    return str.replace(/\ /g, "___");
    }
    function reaction_buttons_increment_button_ajax(post_id, button){
    // remove the onclick attribute before sending the request to make
    // sure none votes more than once by clicking ten times fast
    jQuery("#reaction_buttons_post" + post_id + " span.reaction_button_" + prepare_attr_jl(button) + "_count").removeAttr('onclick');
    jQuery.ajax({
    type: "post",url: "http://aprama.com/blog_wp/wp-admin/admin-ajax.php", dataType: 'json',
    data: { action: 'reaction_buttons_increment_button_php', post_id: post_id, button: button, _ajax_nonce: '3d2b8a4662' },
    success: function(data){
    if(data['cookie']){
    // Set the cookie, which expires after 3 days. Hope that helps to circumvent
    // the problem that browsers only have to save 30 cookies per domain.
    jQuery.cookie("reaction_buttons_" + post_id, JSON.stringify(data['cookie']), {expires: 3});
    }
    jQuery("#reaction_buttons_post" + post_id + " span.reaction_button_" + prepare_attr_jl(button) + "_count span").html("("+data['count']+")");
    jQuery("#reaction_buttons_post" + post_id + " span.reaction_button_" + prepare_attr_jl(button) + "_count").addClass('voted');
    }
    });
    }
    --></script>

    I pasted the source code into notepad ++ which is an enhanced version of the one which comes with Windows. I checked carefully and i know it was the reaction buttons causing the issue, voting buttons. The line of the error supplied pointed directly to the reaction buttons.

    Thanks

    http://wordpress.org/extend/plugins/reaction-buttons/

  2. Jakob Lenfers
    Member
    Plugin Author

    Posted 4 years ago #

    Which line is line 53 in your snippet?

    I just checked my site in IE8 and voting works without error. Can you please try on the reaction buttons homepage, if it works there? http://blog.jl42.de/reaction-buttons/

    And is your homepage still online somewhere? So that I could try to reproduce the error.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic