Notifications

6 views

Symptoms


When building a widget on the Service Portal and calling the function location.reload(); within the Client Controller portion, this causes issues within Internet Explorer 11.

So if you're using it in a submit type of button, it will just reload the page but the widget doesn't run correctly. 

This will work fine on other browsers such as Chrome or Firefox. 

Release


All Releases

Environment


Internet Explorer 11 (IE11)

Cause 


The cause is by Internet Explorer not liking location.reload(); and not allowing enough time for the widget to process correctly.

Resolution


A solution to this issue is to have a timeout function which will pause the call temporarily. Please see the below code snippet:

 

setTimeout(function(){ 
location.reload(); 
}, 1000); 

Article Information

Last Updated:2018-11-09 20:35:27
Published:2018-11-10