Hi,
I'm experiencing strange js error in page where I've used AspxPopupControl, it's enough hardly describe all the scenario but the error seems involved when a resize event is raised from the popupcontrol.
I try to put here some information but since it's not allowed to post any attachment I'm waiting for a your suggestion to share any files you need.
Stack Trace
> _aspxGetPositionElementOffset JScript
_aspxPrepareClientPosForElement JScript
JScript anonymous function JScript
JScript anonymous function JScript
JScript anonymous function JScript
aspxPopupControlWindowResize JScript
Code when exception is thrown
function _aspxGetPositionElementOffset(element,isX){var curEl=element.offsetParent;var offset=0;var scroll=0;var position="";while(curEl!=null){var tagName=_aspxIsExists(curEl.tagName)?curEl.tagName.toLowerCase():"";if(tagName=="html"||tagName=="body")break;if(tagName!="td"&&tagName!="tr"){var style=_aspxGetCurrentStyle(curEl);if(style.position=="absolute"||style.position=="fixed"||style.position=="relative"){offset+=isX?curEl.offsetLeft:curEl.offsetTop;if(__aspxIE||__aspxOpera9||__aspxSafariMacOS)offset+=_aspxPxToInt(isX?style.borderLeftWidth:style.borderTopWidth);}}
scroll+=isX?curEl.scrollLeft:curEl.scrollTop;curEl=curEl.offsetParent;}
offset-=scroll;return offset;}
In particulary is element.offsetParent is null;
Now while I'm writing here I see that the problem is caused from a callbackpanel that includes the aspxPopupControl when at client side I invoke
- aspxPopControl.Show()
- and then callBackPanel.PerformCallback();
I do that since i need to update popup content plus the popup header text, so if i put the callbackpanel inside of popupcontrols it works but the header text doesn't change.
P.S (I'm using version 8.2.2)
Any suggestion will be appreciated.
Kind Regards