cancel
Showing results for 
Search instead for 
Did you mean: 

sap.m.MessageToast cannot be supported in IE9

Former Member
0 Kudos

I test this method sap.m.MessageToast.show(string); for many times in IE9, I am sure when you call this method continuous, error will be occurred, and leads to view page dead. View the error in detail below:

how I can handle and solve this bugs?

Accepted Solutions (1)

Accepted Solutions (1)

santhu_gowdaz
Active Contributor
0 Kudos

The standard Document tells,

sap.m.MessageToast.show(): some properties are not shown in ie9

Describes how the close animation will progress. Possible values "ease", "linear", "ease-in", "ease-out", "ease-in-out". This feature is not supported in android and ie9 browsers.

JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.m.MessageToast

Former Member
0 Kudos

No, it's not about the close animation.

I just call this method like this : sap.m.MessageToast.show("Hallo world") ; on my view controller file.

and the error info  the console output  shown that not support "forEach" and "indexOf".

Private_Member_15166
Active Contributor
0 Kudos

I checked this in IE and it's working.

SAPUI5 Explored

This is also working in explorer.

JS Bin - Collaborative JavaScript Debugging

Former Member
0 Kudos

yes, I know that.

but now I solved it by adding forEach and indexOf methods for Array object. the detailed info is as followed below:

if(!Array.indexOf){

      Array.prototype.indexOf = function(obj){             

          for(var i=0; i<this.length; i++){

              if(this[i]===obj){

                  return i;

              }

          }

          return -1;

      }

  }

  

   if (!Array.prototype.forEach) { 

       Array.prototype.forEach = function(fun /*, thisp*/){ 

           var len = this.length; 

           if (typeof fun != "function") 

               throw new TypeError(); 

           var thisp = arguments[1]; 

           for (var i = 0; i < len; i++){ 

               if (i in this) 

                   fun.call(thisp, this[i], i, this); 

           } 

       }

Hope my experience can help many more people.

Answers (0)