• 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: https://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: "https://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

    https://www.ads-software.com/extend/plugins/reaction-buttons/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Reaction Buttons] Reaction buttons causing webpage error in IE8’ is closed to new replies.