Hello,
Many websites are using JavaScript with a lot of errors. With modern Firefox browser, it will bypass, ignore or accept the errors. However the revBrowser will always pop up a lot of "Internet Explorer Script Error" windows. The pop-up really interrupt the process.
Any way to ignore the error so that the "Internet Explorer Script Error" windows will not be pop up?
Thanks and best regards
How to ignore IE Script Error with revBrowser?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: How to ignore IE Script Error with revBrowser?
Hi Alex,
Try using this:
<head>
<script type="text/javascript">
function noError(){return true;}
window.onerror = noError;
</script>
</head>
This creates a function that always returns true, and then whenever an error occurs, calls this function (returning true and suppressing the error).
It's not good practice but should help you out.
LiveCode uses MSHTML (IE) on Windows and WebKit on Mac OS X .
Try using this:
<head>
<script type="text/javascript">
function noError(){return true;}
window.onerror = noError;
</script>
</head>
This creates a function that always returns true, and then whenever an error occurs, calls this function (returning true and suppressing the error).
It's not good practice but should help you out.
LiveCode uses MSHTML (IE) on Windows and WebKit on Mac OS X .
Andy Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
Re: How to ignore IE Script Error with revBrowser?
Hi Alex,
Whoops. just realised you meant sites you have no control over.
More of a problem. You might try passing a web page to an I-frame in the browser. You should be able to trap errors that way.
I'll do a few experiments and get back to you.
Whoops. just realised you meant sites you have no control over.
More of a problem. You might try passing a web page to an I-frame in the browser. You should be able to trap errors that way.
I'll do a few experiments and get back to you.
Andy Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
-
- VIP Livecode Opensource Backer
- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
- Location: Berkeley, CA, US
- Contact:
Re: How to ignore IE Script Error with revBrowser?
Does changing the IE preferences help?
Re: How to ignore IE Script Error with revBrowser?
Hi mwieder,
Thanks for your help. Actually the browser always set to "no notification for script error".
Thanks and best regards
Alex
Thanks for your help. Actually the browser always set to "no notification for script error".
Thanks and best regards
Alex
Alex
Nice to meet all of you.
Nice to meet all of you.