Upload Control Not Responding – Issue Resolution

How Can We Help?

< Back

Issue

From Chrome Version 61 onwards, Upload Control in Object Groups is not responding for older versions of XMPro (6.1, 6.5, etc.).

Resolution

Open Site.Master file in <XMPro_Installation_Directory>

Inside <script type=”text/javascript”></script> place the following JavaScript window.onload function

window.onload = function () {

var GetDocumentScrollTop = function () {

var isScrollBodyIE = ASPx.Browser.IE && ASPx.GetCurrentStyle(document.body).overflow ==”hidden” && document.body.scrollTop > 0;

if (ASPx.Browser.WebKitFamily || isScrollBodyIE) {

if (ASPx.Browser.MacOSMobilePlatform)

return window.pageYOffset;

else if (ASPx.Browser.WebKitFamily)

return document.documentElement.scrollTop || document.body.scrollTop;

return document.body.scrollTop;

}

else

return document.documentElement.scrollTop;

};

var_aspxGetDocumentScrollTop = function ()

if (__aspxWebKitFamily) {

if (__aspxMacOSMobilePlatform)

return window.pageYOffset;

else

return document.documentElement.scrollTop || document.body.scrollTop;

}

else

return document.documentElement.scrollTop;

}

if (window._aspxGetDocumentScrollTop) {

window.aspxGetDocumentScrollTop = _aspxGetDocumentScrollTop;

window.ASPxClientUtils.GetDocumentScrollTop = _aspxGetDocumentScrollTop;

} else {

window.ASPx.GetDocumentScrollTop = GetDocumentScrollTop;

window.ASPxClientUtils.GetDocumentScrollTop = GetDocumentScrollTop;

}

/* Begin – > Correct Scrollleft */

var GetDocumentScrollLeft = function () {

var isScrollBodyIE = ASPx.Browser.IE && ASPx.GetCurrentStyle(document.body).overflow ==”hidden” && document.body.scrollLeft > 0;

if (ASPx.Browser.WebKitFamily || isScrollBodyIE) {

if (ASPx.Browser.MacOSMobilePlatform)

return window.pageXOffset;

else if (ASPx.Browser.WebKitFamily)

return document.documentElement.scrollLeft || document.body.scrollLeft;

return document.body.scrollLeft;

}

else

return document.documentElement.scrollLeft;

};

var_aspxGetDocumentScrollLeft = function () {

if (__aspxWebKitFamily) {

if (__aspxMacOSMobilePlatform)

return window.pageXOffset;

else

return document.documentElement.scrollLeft || document.body.scrollLeft;

}

else

return document.documentElement.scrollLeft;

}

if (window._aspxGetDocumentScrollLeft) {

window._aspxGetDocumentScrollLeft = _aspxGetDocumentScrollLeft;

window.ASPxClientUtils.GetDocumentScrollLeft = _aspxGetDocumentScrollLeft;

} else {

window.ASPx.GetDocumentScrollLeft = GetDocumentScrollLeft;

window.ASPxClientUtils.GetDocumentScrollLeft = GetDocumentScrollLeft;

}

/* End -> Correct ScrollLeft */

};

 

This will fix the issue of Upload Control not responding to the latest Chrome versions and older XMPro versions.

Comments are closed.

This is the legacy version of the XMPro Documentation site. For the latest XMPro documentation, please visit documentation.xmpro.com

X