How to ignore IE Script Error with revBrowser?

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
alex298
Posts: 101
Joined: Mon May 01, 2006 1:17 pm

How to ignore IE Script Error with revBrowser?

Post by alex298 » Fri Aug 19, 2011 5:54 am

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
Attachments
revbrowser_script_error.jpg
Alex
Nice to meet all of you.

AndyP
Posts: 615
Joined: Wed Aug 27, 2008 12:57 pm
Location: Seeheim, Germany (ex UK)
Contact:

Re: How to ignore IE Script Error with revBrowser?

Post by AndyP » Fri Aug 19, 2011 3:22 pm

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 .
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

AndyP
Posts: 615
Joined: Wed Aug 27, 2008 12:57 pm
Location: Seeheim, Germany (ex UK)
Contact:

Re: How to ignore IE Script Error with revBrowser?

Post by AndyP » Fri Aug 19, 2011 4:09 pm

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.
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

mwieder
VIP Livecode Opensource Backer
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?

Post by mwieder » Fri Aug 19, 2011 8:00 pm

Does changing the IE preferences help?
Attachments
IE.png

alex298
Posts: 101
Joined: Mon May 01, 2006 1:17 pm

Re: How to ignore IE Script Error with revBrowser?

Post by alex298 » Sat Aug 20, 2011 10:15 am

Hi mwieder,

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.

Post Reply

Return to “Internet”