Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #19530

    Getting an error on the product page so nothing shows beyond the main div

    Uncaught TypeError: Object #<Object> has no method ‘supports’

    avia.js:225

    Just can not work out why this error occurs?

    //


    // fancy hover effect

    //


    (function($)

    {

    “use strict”;

    $.avia_utilities = $.avia_utilities || {};

    $.fn.avia_fancy_buttons = function(passed_options)

    {

    var win = $(window),

    defaults =

    {

    target: false,

    copy_img: true

    },

    options = $.extend({}, defaults, passed_options);

    return this.each(function()

    {

    //check if the browser supports element rotation

    if(!$.avia_utilities.supports(‘transition’, )) { return false; }

    Uncaught TypeError: Object #<Object> has no method ‘supports’

    var buttons = $(this),

    current = false,

    target = false,

    html = “<span class=’css_3_hover’></span>”,

    effect = false;

    buttons.each(function()

    {

    current = $(this).addClass(‘css_3_hover_container’);

    target = options.target ? current.find(options.target) : current;

    effect = $(html).appendTo(current);

    //fix the default hover color

    target.css(‘background-color’, target.css(‘background-color’));

    if(options.copy_img)

    {

    effect.css(‘background-position’, target.css(‘background-position’));

    effect.css(‘background-image’, target.css(‘background-image’));

    }

    });

    });

    };

    })(jQuery);

    #104055

    Hey!

    Can you post a link to your website please?

    Regards,

    Peter

    #104056

    apologies its locked away and i dont have the permission (access) to tunr off the block to outside ips

    is there any info i can give you?

    much appreciated!

    #104057

    Ok very weird, it just started working and no error!

    just wondering does avia depend on google jquery cdn at all?

    #104058

    Hi dccs52,

    No, the theme loads in jquery through WordPress’s own library.

    Glad its working for you now and if it comes back, just keep an eye on any plugins recently installed or settings changed or anything like that.

    Regards,

    Devin

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Getting a JS error on the product page so nothing shows beyond the main div’ is closed to new replies.