Permission denied to access property jQuery

Stephen Hodgkiss January 19, 2016

I have just started getting this error for the popup Issue Collector .. has something changed?

I have also created a test support html page with only the basic jquery coding in it as a test. This also fails with the same error.

---------------------------

Error: Permission denied to access property "jQuery"

(function(){var jQuery=window.top.jQuery||window.jQuery;function getNewScrollTop(options){options=options||{};options.marginTop=options.marginTop||options.margin||0;options.marginBottom=options.marginBottom||options.margin||0;var $window=jQuery(window.top);var $stalker=jQuery("#stalker");var scrollTop=$window.scrollTop();var scrollHeight=$window.height();var offsetTop=Math.max(0,getPageY(this[0])-options.marginTop);var offsetHeight=options.marginTop+this.outerHeight()+options.marginBottom;var newScrollTop=scrollTop;if(newScrollTop+scrollHeight<offsetTop+offsetHeight){newScrollTop=offsetTop+offsetHeight-scrollHeight}if($stalker.length!==0){var offsetParent=this[0];var positionedParent=null;do{if(jQuery(offsetParent).css("position")==="absolute"){positionedParent=offsetParent}}while(offsetParent=offsetParent.offsetParent);if(positionedParent&&getPageY(positionedParent)>getPageY($stalker[0])){offsetTop-=$stalker.outerHeight()}}if(newScrollTop>offsetTop){newScrollTop=offsetTop}return newScrollTop}function getPageY(element){var currElement=element,offsetTop=0;do{offsetTop+=currElement.offsetTop}while(currElement=currElement.offsetParent);currElement=element;do{if(currElement&&currElement.scrollTop){offsetTop-=currElement.scrollTop}currElement=currElement.parentNode}while(currElement&&currElement!=document.body);return offsetTop}window.jQuery.fn.scrollIntoView=function(options){if(this.length===0){return this}var fixedParent=this.hasFixedParent();if(!fixedParent){options=options||{};if(!this.is(":visible")&&options.callback){options.callback();return this}var scrollTop=jQuery(window.top).scrollTop();var newScrollTop=getNewScrollTop.call(this,options);var $stalker=jQuery("#stalker");if(newScrollTop!==scrollTop){var $target=this;var $document=jQuery(window.top.document);$document.trigger("moveToStarted",$target);if(options.duration){$document.find("body, html").stop(true).animate({scrollTop:newScrollTop},options.duration,"swing",function(){if(options.callback){options.callback()}$document.trigger("moveToFinished",$target);$stalker.trigger("positionChanged")})}else{$document.find("body, html").prop("scrollTop",newScrollTop)}}else{if(options.callback){options.callback()}}}else{var $elementToScrollTo=jQuery(this),$fixedParent=jQuery(fixedParent),fixedParentHeight=$fixedParent.outerHeight(),fixedParentScrollTop=$fixedParent.scrollTop(),fixedParentScrollBottom=fixedParentScrollTop+fixedParentHeight,elementPosition=$elementToScrollTo.position(),elementPositionBottom=elementPosition.top+$elementToScrollTo.height();var below=elementPositionBottom+fixedParentScrollTop>fixedParentScrollBottom,above=elementPosition.top<0;if(below){$fixedParent.scrollTop(fixedParentScrollTop+elementPositionBottom-fixedParentHeight)}else{if(above){$fixedParent.scrollTop(fixedParentScrollTop+elementPosition.top)}}}return this};jQuery.fn.isInView=function(options){if(this.length>0&&!this.hasFixedParent()){options=options||{};var scrollTop=jQuery(window.top).scrollTop();var newScrollTop=getNewScrollTop.call(this,options);return newScrollTop===scrollTop}return this}})();;

1 answer

0 votes
Stephen Hodgkiss January 19, 2016

See the very simple test page that has the 'prominent' button at the top of the page https://dev-markethive.com/support_test.html

Suggest an answer

Log in or Sign up to answer