B4J Question [ABMaterial] msgbox and IE

ToolboxZX

Member
Licensed User
Does page.msgbox work in IE 11? (ABMaterial version 3.02)

A line such as:
B4X:
page.Msgbox("MSGBOX","Test message","Test Title","OK","")
does not appear to do anything, but it works fine in Edge.
 

alwaysbusy

Expert
Licensed User
SweetAlert2 (the library Msgbox is based on), uses some features IE cannot handle. You can always try to add the following line in BuildPage(), which adds a polyfill that 'may' cope with those missing features. Note that this core.js <> ABMaterials core.js so you may have to rename it!

Untested:
B4X:
Page.AddExtraJavaScriptFile("https://cdnjs.cloudflare.com/ajax/libs/core-js/2.4.1/core.js")
 
Upvote 0
Top