473,385 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

suppress Javascript error messages in vb .net

Hi,
I have written a webbrowser application in VB .net Framework 1.1. I
would like to suppress javascript error messages. However, the silent
property of the webbrowser control suppresses the Javascript
messages,
but it also blocks any other dialog box, such as Login dialog, i
can't
use the silent property.
I used http://support.microsoft.com/default...b;EN-US;279535
article to suppress the error messages. It works fine until a user
hits the refresh button, so the WebBrowser::NavigateComplete Event is
not called, therefore, the error messages are not called. Another
issue with this approach is that it will only trap javascript errors
on the page that doesn't have any frames.

I was then asked to implement Implements "IDocHostUIHandler" and
"IOleCommandTarget".
I implemented both interfaces using these articles
http://www.thescripts.com/forum/thread47988.html and
http://support.microsoft.com/default...b;EN-US;261003
I can trap all the functions and subs that belong IDocHostUIHandler.
But the function that i really need to trap is
IOleCommandTarget::Exec, because returning true in this method, will
cause the javascript error message to be suppressed. But for some
strange reason, the IOleCommandTarget::Exec is never called.
I have tried to inculde as much information as possible but if
there's
anything unclear, please let me know.
If any knows how to implement IOleCommandTarget in vb .net, please
let
me know.
Any help would be greatly appreciated

May 31 '07 #1
2 6623
ZeeHseez,

Forget it, in a way you are being busy inside the security issues, this kind
of stuff is changing all the time.

Just my idea,

Cor

<Ze******@gmail.comschreef in bericht
news:11*********************@m36g2000hse.googlegro ups.com...
Hi,
I have written a webbrowser application in VB .net Framework 1.1. I
would like to suppress javascript error messages. However, the silent
property of the webbrowser control suppresses the Javascript
messages,
but it also blocks any other dialog box, such as Login dialog, i
can't
use the silent property.
I used http://support.microsoft.com/default...b;EN-US;279535
article to suppress the error messages. It works fine until a user
hits the refresh button, so the WebBrowser::NavigateComplete Event is
not called, therefore, the error messages are not called. Another
issue with this approach is that it will only trap javascript errors
on the page that doesn't have any frames.

I was then asked to implement Implements "IDocHostUIHandler" and
"IOleCommandTarget".
I implemented both interfaces using these articles
http://www.thescripts.com/forum/thread47988.html and
http://support.microsoft.com/default...b;EN-US;261003
I can trap all the functions and subs that belong IDocHostUIHandler.
But the function that i really need to trap is
IOleCommandTarget::Exec, because returning true in this method, will
cause the javascript error message to be suppressed. But for some
strange reason, the IOleCommandTarget::Exec is never called.
I have tried to inculde as much information as possible but if
there's
anything unclear, please let me know.
If any knows how to implement IOleCommandTarget in vb .net, please
let
me know.
Any help would be greatly appreciated

Jun 1 '07 #2
On May 31, 11:55 pm, "Cor Ligthert [MVP]" <notmyfirstn...@planet.nl>
wrote:
ZeeHseez,

Forget it, in a way you are being busy inside the security issues, this kind
of stuff is changing all the time.

Just my idea,

Cor

<ZeeHs...@gmail.comschreef in berichtnews:11*********************@m36g2000hse.go oglegroups.com...
Hi,
I have written a webbrowser application in VB .net Framework 1.1. I
would like to suppress javascript error messages. However, the silent
property of the webbrowser control suppresses the Javascript
messages,
but it also blocks any other dialog box, such as Login dialog, i
can't
use the silent property.
I usedhttp://support.microsoft.com/default.aspx?scid=kb;EN-US;279535
article to suppress the error messages. It works fine until a user
hits the refresh button, so the WebBrowser::NavigateComplete Event is
not called, therefore, the error messages are not called. Another
issue with this approach is that it will only trap javascript errors
on the page that doesn't have any frames.
I was then asked to implement Implements "IDocHostUIHandler" and
"IOleCommandTarget".
I implemented both interfaces using these articles
http://www.thescripts.com/forum/thread47988.htmland
http://support.microsoft.com/default...b;EN-US;261003
I can trap all the functions and subs that belong IDocHostUIHandler.
But the function that i really need to trap is
IOleCommandTarget::Exec, because returning true in this method, will
cause the javascript error message to be suppressed. But for some
strange reason, the IOleCommandTarget::Exec is never called.
I have tried to inculde as much information as possible but if
there's
anything unclear, please let me know.
If any knows how to implement IOleCommandTarget in vb .net, please
let
me know.
Any help would be greatly appreciated- Hide quoted text -

- Show quoted text -
Thank you! but i really need to be able to suppress those stupid
javascript error messages.
If you know how, please let me know

Jun 1 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: lawrence | last post by:
This line: if (file_exists($fileName)) { is (on some web servers) giving me this kind of error: Warning: SAFE MODE Restriction in effect. The script whose uid is 1022 is not allowed to...
3
by: Pacer Dawn | last post by:
I have a web control that takes a date input. There are two types of validation I want to do on this: 1) validate that the date input is in the proper format, and display a message if otherwise...
7
by: swethasivaram | last post by:
Hello I have a Java-based web application whose interface can be in multiple languages. My requirement is that the javascript alerts that I display should be displayed in the language in which...
1
by: jaishu | last post by:
When i try to insert data into a backend Oracle table (with ODBC) using a form, (i use docmd.runsql "insert....") Access gives me a message like"You are trying to append 1 row to the table are you...
3
by: Chris Shenton | last post by:
I am setting up handlers to log DEBUG and above to a rotating file and ERROR and above to console. But if any of my code calls a logger (e.g., logging.error("foo")) before I setup my handlers, the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.