| View previous topic :: View next topic |
| Author |
Message |
viana Guest
|
Posted: Tue May 15, 2007 9:47 pm Post subject: Ignore script errors in TWebBrowser ? |
|
|
Is there a way to ignore script errors in a TWebBrowser ? Problem is when a script error occurs, my program stops. I'd like to simply ignore it.
Thanks,
Viana |
|
| Back to top |
|
 |
Marc Wetzel Guest
|
Posted: Tue May 15, 2007 10:17 pm Post subject: Re: Ignore script errors in TWebBrowser ? |
|
|
| Quote: | Is there a way to ignore script errors in a TWebBrowser ? Problem is when a script error occurs, my program stops. I'd like to simply ignore it.
|
Have a look at TEmbeddedWebbrowser at the bsalsa-site
Web Site Address: http://www.bsalsa.com/index.html
If I remember right, this component has some option to ignore script errors.
Maybe you can use this component or extract the necessary information out of it.
Greetings
Marc |
|
| Back to top |
|
 |
viana Guest
|
Posted: Tue May 15, 2007 10:31 pm Post subject: Re: Ignore script errors in TWebBrowser ? |
|
|
hi marc,
thank you for your reply, but i'd like a solution without installing a third-part component.
Marc Wetzel <mwNOSPAMse (AT) gmx (DOT) de> wrote:
| Quote: | Is there a way to ignore script errors in a TWebBrowser ? Problem is when a script error occurs, my program stops. I'd like to simply ignore it.
Have a look at TEmbeddedWebbrowser at the bsalsa-site
Web Site Address: http://www.bsalsa.com/index.html
If I remember right, this component has some option to ignore script errors.
Maybe you can use this component or extract the necessary information out of it.
Greetings
Marc |
|
|
| Back to top |
|
 |
Marc Wetzel Guest
|
Posted: Tue May 15, 2007 10:44 pm Post subject: Re: Ignore script errors in TWebBrowser ? |
|
|
viana schrieb:
| Quote: | hi marc,
thank you for your reply, but i'd like a solution without installing a third-part component.
|
As I already said, the source may contain the solution to your problem.
You might not need to install this component to find out how it solves your
problem :)
| Quote: |
Marc Wetzel <mwNOSPAMse (AT) gmx (DOT) de> wrote:
Is there a way to ignore script errors in a TWebBrowser ? Problem is when a script error occurs, my program stops. I'd like to simply ignore it.
Have a look at TEmbeddedWebbrowser at the bsalsa-site
Web Site Address: http://www.bsalsa.com/index.html
If I remember right, this component has some option to ignore script errors.
Maybe you can use this component or extract the necessary information out of it.
Greetings
Marc
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed May 16, 2007 12:21 am Post subject: Re: Ignore script errors in TWebBrowser ? |
|
|
"viana" <v (AT) v (DOT) com> wrote in message
news:4649e421$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Is there a way to ignore script errors in a TWebBrowser ?
Problem is when a script error occurs, my program stops.
I'd like to simply ignore it.
|
Try setting the Silent property to True. If that does not work, then
you will have to create and register your own script debugger, and
then have it discard any error notifications it receives.
Gambit |
|
| Back to top |
|
 |
viana Guest
|
Posted: Wed May 16, 2007 5:12 am Post subject: Re: Ignore script errors in TWebBrowser ? |
|
|
| Quote: | Try setting the Silent property to True. If that does not work, then
you will have to create and register your own script debugger, and
then have it discard any error notifications it receives.
|
unhappy it does not work :(
i can't create and register a script debugger in all customer i install the program... i think that maybe there is some workaround, no ? i will research and post here if i find something.
thank you for your attention.
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed May 16, 2007 5:42 am Post subject: Re: Ignore script errors in TWebBrowser ? |
|
|
"viana" <v (AT) v (DOT) com> wrote in message
news:464a4c66$1 (AT) newsgroups (DOT) borland.com...
| Quote: | i can't create and register a script debugger in all
customer i install the program...
|
That is not what I meant. I was referring to creating a debugger
class in your own code and then registering it with the TWebBrowser
instance at runtime. There is nothing to install on the machine. It
is just an object that has callback events that TWebBrowser calls when
needed.
Gambit |
|
| Back to top |
|
 |
Eddie Shipman Guest
|
Posted: Wed May 16, 2007 6:31 pm Post subject: Re: Ignore script errors in TWebBrowser ? |
|
|
viana wrote:
| Quote: |
Is there a way to ignore script errors in a TWebBrowser ? Problem is
when a script error occurs, my program stops. I'd like to simply
ignore it.
Thanks,
Viana
|
Check out my post here:
http://www.delphipages.com/threads/thread.cfm?ID=101040&G=100927
Shows you how to hadle JS errors..
-- |
|
| Back to top |
|
 |
viana Guest
|
Posted: Wed May 16, 2007 10:34 pm Post subject: Re: Ignore script errors in TWebBrowser ? |
|
|
"Remy Lebeau \(TeamB\)" <no.spam (AT) no (DOT) spam.com> wrote:
| Quote: |
"viana" <v (AT) v (DOT) com> wrote in message
news:464a4c66$1 (AT) newsgroups (DOT) borland.com...
i can't create and register a script debugger in all
customer i install the program...
That is not what I meant. I was referring to creating a debugger
class in your own code and then registering it with the TWebBrowser
instance at runtime. There is nothing to install on the machine. It
is just an object that has callback events that TWebBrowser calls when
needed.
|
hello gambit,
no idea how to do it ; can you direct me to an example ?
thanks ! |
|
| Back to top |
|
 |
|