Javascript error on frontend.js
-
The plugin seems to work fine overall but the javascript console raises the following error in every page where the banners are displayed:
Uncaught TypeError: Cannot read property 'left' of undefined - frontend.js line 44.This is the function that is causing the error (third line):
function logging_ads(){ $('.aas_wrapper').each(function(){ if( isVisible( jQuery(this).children() ) && jQuery(this).offset().left == jQuery(this).closest('.caroufredsel_wrapper').offset().left && viewed[jQuery(this).data('ads')] != 1 ){ viewed[jQuery(this).data('ads')] = 1; var data = { action : 'aas_view_log', nonce : jQuery(this).data('nonce'), data : jQuery(this).data('ads'), c_url : window.location.href }; jQuery.post(ajax.url,data,function(response){}); } }); }Any ideas of what can be the reason and how to correct it? Otherwise great plugin, very simple to use in comparison to other advertising plugins.
This is the website I’m working on: http://indumentat.com/
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Javascript error on frontend.js’ is closed to new replies.