Hi everyone, hope my post finds you well. This is my first post so I would like to say big thanks for aynone involved with Anvil because I am a hobbyist with very low coding skill, yet I was able thanks to Anvil to get up and running a nice registration page for our local fish exhibition. And I am literally excited because I feel like the more I am working with it, the more options I am discovering And my friends are excited too.
However I noticed that some of my friends still use Internet Explorer. Is it possible to sniff IE so that I can just throw a warning? All other browsers (webkit and chromium based) are working just fine. I would like to block them if they are using IE because they cannot even tell me what browser they are using (They will insist on edge and yet it is Internet explorer and Windows 7+
What I’m trying to do:
Is it possible to detect that someone is using Internet Explorer? So that I can simply send an alert and tell them to use a different browser?
What I’ve tried and what’s not working:
ExternalError: TypeError: Object doesn’t support property or method ‘remove’
In my page, I am using the material theme and theme component card. I run:
card.clear(), card.add_component(some_ohter_form) when you click on a button, but this just seems to be the culprit of the errors in IE.
App to reproduce
Code Sample:
material design theme — custom component card
def button_1_click(self, **event_args):
"""This method is called when the button is clicked"""
from ..content import content
self.card_1.clear()
self.card_1.add_component(content())
Clone link:
https://anvil.works/build#clone:XESPZFFBK3AODEDY=6AQKWM7DFKIVVGMTWQ2CSOX5