cancel
Showing results for 
Search instead for 
Did you mean: 

SAP MII 12.2.4 lightspeed.js and IE10

Former Member
0 Kudos

Hi,

I have been trying to get MII Navigation tree to work in IE10 and IE10 compatibility mode. I keep getting the following error

SCRIPT5007: Unable to set property 'async' of undefined or null reference

lightspeed.js, line 23 character 5166

I found the problem to be the fact the Menu JavaScript functions are deprecated and no longer supported. The one in particular is .XMLDocument.

below is the area in which the js file is failing:

UCF_JsUtil.oParseXMLDocument =

function(sXMLText) {


var oXMLDocument = null;


if (window.ActiveXObject) {


var oXMLRef = document.createElement("xml");


document.body.appendChild(

oXMLRef);


oXMLDocument = oXMLRef.XMLDocument;


oXMLDocument.async = false;


oXMLDocument.loadXML(sXMLText);


document.body.removeChild(

oXMLRef);


oXMLRef.


}


if (window.DOMParser) {


var oParser = new DOMParser();


oXMLDocument = oParser.parseFromString(sXMLText, "text/xml");


}


return oXMLDocument;


};

...There is a fix to this by changing the function to use the DOMParser object that we see in the second if statement. My question : Is there a way to get to this JavaScript file and change it? I know it is part of the com.sap.ui Java package. Any help is greatly appreciated.

Thanks, Robert

Accepted Solutions (1)

Accepted Solutions (1)

sidnooradarsh
Contributor
0 Kudos

Hello Robert,

Just thought of sharing it.

I also ran into same issue but I didn't get the error you are getting.

I wasn't sure how to get it to work so I built a custom navigation screen and once user logged into MII I simply redirected him to this custom navigation screen.

I am guessing the future MII patches will fix this issue.

Regards,

Adarsh

Former Member
0 Kudos

Thanks Adarsh. I do not know why I didn't think of that earlier.

Answers (0)