Flash Player error with Browser widget
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Flash Player error with Browser widget
Hello,
I sometimes encounter an error with a Browser widget. LC displays this modal dialog alert: First, I don't understand the reason of this alert, but maybe it's due to the loaded website.
The real problem is that this alert is modal. Is there another way to display this errors, non-blocking, in order to continue processes ?
I'm using LC Indy 9.04.
Thank you.
I sometimes encounter an error with a Browser widget. LC displays this modal dialog alert: First, I don't understand the reason of this alert, but maybe it's due to the loaded website.
The real problem is that this alert is modal. Is there another way to display this errors, non-blocking, in order to continue processes ?
I'm using LC Indy 9.04.
Thank you.
Re: Flash Player error with Browser widget
Hi Zax,
do you see the dialog(s) also when you go to these webites with e.g. "Safari"?
If yes, then you cannot do anything against this.
Best
Klaus
do you see the dialog(s) also when you go to these webites with e.g. "Safari"?
If yes, then you cannot do anything against this.
Best
Klaus
Re: Flash Player error with Browser widget
Hello Klaus,
No, I never encounter this flash alert when using Firefox on MacOS Sierra and Windows 10.
Once again, this strange Flash error is not the real problem. My problem is how to continue process. Maybe I could use lock error dialogs?
No, I never encounter this flash alert when using Firefox on MacOS Sierra and Windows 10.
Once again, this strange Flash error is not the real problem. My problem is how to continue process. Maybe I could use lock error dialogs?
Re: Flash Player error with Browser widget
Hm, sorry, no idea if "lock error dialogs" will work for the browser widget.
Re: Flash Player error with Browser widget
Well, I found a hack... in one of your old post, Klaus
https://forums.livecode.com/viewtopic.php?t=17860
https://forums.livecode.com/viewtopic.php?t=17860
Klaus wrote: ↑Wed Nov 06, 2013 7:12 pmCode: Select all
on mouseUp ## Important part to send BEFORE the dialog ;-) send "closeit" to me in 2 secs answer "sfasdfasdfasdfasdf" end mouseUp command closeit close stack "Answer Dialog" end closeit
Re: Flash Player error with Browser widget
HA!
Your message contains 6 characters.
You need to enter at least 10 characters.
Your message contains 6 characters.
You need to enter at least 10 characters.
Re: Flash Player error with Browser widget
Bad news (for me):
Alerts sended by the Browser widget are not treated as "Answer" modal dialogs. It can be easily tested by adding a Javascript with "alert('JS alert');" to the widget.
Though "regular" answers are well dismissed with Klaus' script, modal dialogs sended by the widget are not.
Still looking for a way to dismiss these blocking modal dialogs...
Alerts sended by the Browser widget are not treated as "Answer" modal dialogs. It can be easily tested by adding a Javascript with "alert('JS alert');" to the widget.
Though "regular" answers are well dismissed with Klaus' script, modal dialogs sended by the widget are not.
Still looking for a way to dismiss these blocking modal dialogs...
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: Flash Player error with Browser widget
The script below *disables* ALL alerts on the current page.
If you wish to show instead a LC non-modal warning write a javascriptHandler and insert it in the JS function below.
or (if you have full control about the content of the widget) add this as
just before "</body>" to your htmltext/web page content.
If you wish to show instead a LC non-modal warning write a javascriptHandler and insert it in the JS function below.
Code: Select all
on mouseUp
do "window.alert=function(){};" in widget "browser"
end mouseUp
Code: Select all
<script>window.alert=function(){};</script>
shiftLock happens
Re: Flash Player error with Browser widget
Thanks [-hh], I didn't know this way of trapping JS alerts.
Unfortunately, in my case, this strange "Flash" alert sent by the widget is not trapped and displays a modal dialog (though regular JS alerts are well trapped).
Unfortunately, in my case, this strange "Flash" alert sent by the widget is not trapped and displays a modal dialog (though regular JS alerts are well trapped).
Re: Flash Player error with Browser widget
If you do not see this when going to that url in SAFARI, you should report this as a bug:
https://quality.livecode.com
https://quality.livecode.com
Re: Flash Player error with Browser widget
I think the alert came from nasty advertising, and it only happens some times, but I finaly encountered it with Safari :
I don't understand why it is not trapped with JS, but I don't know how Chromium engine works.
I don't understand why it is not trapped with JS, but I don't know how Chromium engine works.
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: Flash Player error with Browser widget
This isn't an ordinary alert, you can see that from the "Annuler" option.
LC interprets that as "error/missing plugin". This isn't trappable in the widget, is part of libbrowser...
LC interprets that as "error/missing plugin". This isn't trappable in the widget, is part of libbrowser...
shiftLock happens
Re: Flash Player error with Browser widget
It's an ordinary JS confirm, screened form localized french Safari. So I extend your JS script in order to hack JS confirm and so far it seems to work
I think LC displays original JS confirms as LC alerts - see my first screen.