Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 73760

AX 2009 - Enterprise Portal on SharePoint 2010 AXLOOKUP problem

$
0
0

If you update your Enterprise Portal (AX 2009) to SharePoint 2010 it works OK in IE and Firefox. Problems appear when you try to access the portal using Google Chrome and Safari . The problems appear when using AXLOOKUP control.

After further investigation it seems that the problem is from MicrosoftAjax.js ( 

if (Sys.Browser.agent === Sys.Browser.Safari) if (this._currentTask._notified === 1) window.setTimeout(Function.createDelegate(this, function () {
this._scriptLoadedHandler(this._currentTask.get_scriptElement(), true)

)

the function createDelegate is the only function that is treated differently when accessing SharePoint 2010 from Chrome or Safari. (On Firefox it works OK)

Editing MicrosoftAjax.js can become a little tricky especially because it is included in System.Web.Extensions.

The simple solution to fix this on all browsers that experience this problem is to add a little script at the end of the SharePoint Master Page

<script type="text/javascript">
if (typeof (Sys) !== 'undefined') {
if (navigator.userAgent.indexOf(" AppleWebKit/") > -1) {
Sys.Browser.agent = Sys.Browser.Firefox;
Sys.Browser.version = parseFloat(navigator.userAgent.match(/AppleWebKit\/(\d+(\.\d+)?)/)[1]);
Sys.Browser.name = "Firefox";
}
}
</script>


Viewing all articles
Browse latest Browse all 73760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>