Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop Script Errors in TWebBrowser in delphi [duplicate]

I have to show a slide show containing javascript language using TWebBrowser Component in Delphi 2010.

While I am playing in IE Browser it doesn't show any errors.

But while running in delphi it shows script error messages.

I don't know javascript language, So I can't do any modifications in javascript code but can do in delphi code.

I need a help that how to stop showing script error messages and play the slide show continuously.

I have coded WebBrowser.Silent:=true in code but it stops both error messages and slide show of images.

Thanks in Advance

like image 443
sonnymadeinvizag Avatar asked Jun 15 '13 07:06

sonnymadeinvizag


1 Answers

I agree with RRUZ, WebBrowser1.Silent := True;, placed in your code should hide the errors popup...

Regarding the slide show which is stopped... I think the answer has been already posted here: How do I make TWebBrowser keep running JavaScript after an error?

like image 114
Whiler Avatar answered Nov 15 '22 05:11

Whiler