5

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

sonnymadeinvizag
  • 59
  • 1
  • 1
  • 3

2 Answers2

8

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?

Community
  • 1
  • 1
Whiler
  • 7,998
  • 4
  • 32
  • 56
-1

This can be difficult. Tchromium Link (now on bitbucket) provides a Chrome alternative to TWebbrowser

Toby Allen
  • 10,997
  • 11
  • 73
  • 124