Is it possible to catch javascript event in webBrowser?

  • Thread starter Thread starter BatKing
  • Start date Start date
B

BatKing

Hi,

I am working on a outlook plugin to open a form window which has a
System.Windows.Forms.WebBrowser control. after loading a page from a website,
I want to catch some javascript (ie a button click or a url link click), then
base on that javascript event, I want to do some changes in my form window
(resize the window or other operations of the form window).

is it possible to catch the event and send it back to the webBrowser or the
form? and how?

thanks.
 
It can be done but I believe you have to subclass the browser control to be
able to get to the javascript events. I don't think there's a lot of
expertise on that in an Outlook forms programming group, I'd post in a more
appropriate group such as an ASP.NET group and ask that question.

I've worked on code like that but in unmanaged VB6 and I have no idea how
that would translate into managed code and Windows.Forms.
 
Thanks Ken,

I seems my dll wasn't sign with Strong name. after I did that it works fine
now. My question is Do I always need a strong name?

Also anything I need to be careful is I want this plugin works for Outlook
2003 also? in my project's reference, I used Office and Outlook version 11.0
instead of Version 12.0 and it seems works on Outlook 2007.
 
Always strong name, yes. Develop on the oldest version of Outlook you intend
to support, for Outlook 2003 and 2007 you'd reference and develop with
Outlook 2003.
 
Back
Top