BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Ignore script errors in TWebBrowser ?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
viana
Guest





PostPosted: Tue May 15, 2007 9:47 pm    Post subject: Ignore script errors in TWebBrowser ? Reply with 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
Back to top
Marc Wetzel
Guest





PostPosted: Tue May 15, 2007 10:17 pm    Post subject: Re: Ignore script errors in TWebBrowser ? Reply with quote



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





PostPosted: Tue May 15, 2007 10:31 pm    Post subject: Re: Ignore script errors in TWebBrowser ? Reply with quote



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





PostPosted: Tue May 15, 2007 10:44 pm    Post subject: Re: Ignore script errors in TWebBrowser ? Reply with quote

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





PostPosted: Wed May 16, 2007 12:21 am    Post subject: Re: Ignore script errors in TWebBrowser ? Reply with quote

"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





PostPosted: Wed May 16, 2007 5:12 am    Post subject: Re: Ignore script errors in TWebBrowser ? Reply with quote

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.

Quote:


Gambit

Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed May 16, 2007 5:42 am    Post subject: Re: Ignore script errors in TWebBrowser ? Reply with quote

"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





PostPosted: Wed May 16, 2007 6:31 pm    Post subject: Re: Ignore script errors in TWebBrowser ? Reply with quote

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





PostPosted: Wed May 16, 2007 10:34 pm    Post subject: Re: Ignore script errors in TWebBrowser ? Reply with quote

"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.