Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Notification not working in IE 11

Nick Barnes
5 years ago Mar 30, 2017 11:24am
Tatu Lund
5 years ago Mar 30, 2017 12:25pm

I tried to test this in one of my "real applications", and I can't reproduce it. So you probably have something in your theme for example, which interferes Notifications. At least I would check that first and after that checking other possibilities.

 

Nick Barnes
5 years ago Mar 30, 2017 12:48pm
Nicklas Karlsson
5 years ago Mar 30, 2017 6:39pm

Does the vaadin sampler demo notifications work in IE11 for you?

Nick Barnes
5 years ago Mar 31, 2017 6:02am
Nick Barnes
5 years ago Mar 31, 2017 6:05am
Nick Barnes
5 years ago Mar 31, 2017 9:07am

OK for future reference if there's anyone that runs into the same problem the issue is.
The code read like this
 
            getUI().getPage().open("http://" + result, "_blank", true);
            if ( result.toLowerCase().contains("error"))
                Notification.show(result, Type.HUMANIZED_MESSAGE);
            else
                Notification.show("Download has begun", Type.HUMANIZED_MESSAGE);

Chrome seemed to ignore the invalid url and continue whereas IE opening the invalid URL caused subsequent operations on the page to fail. Moved the .open method to work only if url was valid and sorted the problem out. Hope this helps someone. Thanks for the assistance provided it really helped me troubleshoot this.