Solved

Capture window.showModalDialog Event?

Posted on 2007-03-26
11
686 Views
Last Modified: 2008-01-09
How do I capture the event that is fired when window.showModalDialog is called (using VB 6.0 and the DOM).
0
Comment
Question by:scottmichael2
  • 5
  • 2
  • 2
  • +1
11 Comments
 
LVL 26

Expert Comment

by:EddieShipman
ID: 18795566
The onShowDialog event perhaps?
0
 
LVL 1

Author Comment

by:scottmichael2
ID: 18795831
Is there such a thing?  I can't find any documentation on it (in the DOM).  I can't access my work PC until tomorrow to try it, so I can't verify that it works.  Do you have a link to a reference on this?  Thanks.
0
 
LVL 26

Expert Comment

by:EddieShipman
ID: 18796060
Yes, you are right. I was looking at a Delphi control that had it.
And looking at the DWebBrowserEvents2 Interface reference, I see nothing about
how it could be done in VB.
0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
LVL 1

Author Comment

by:scottmichael2
ID: 18799370
Durn - the only thing I can figure to do is enumerate all of the IE Windows and look for the caption of the one I need.  Can anyone think of a better way?
0
 
LVL 26

Expert Comment

by:EddieShipman
ID: 18800167
nope, I know that there is some code, although it's in C#, showing how to capture the Save As dialog
to set save options on www.codeproject.com. That may show a technique that you can use.
Here is the link: http://www.codeproject.com/shell/iesaveas.asp

It's done by installing a Windows Hook.


0
 
LVL 26

Expert Comment

by:EddieShipman
ID: 19521798
So, did the OP try to convert the code shown in the link I provided?
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 19523567
EddieShipman,

What is OP?

Thanks for your reply and comment.  The zone this was placed in might have thrown me off.  As I reread this and notice the VB 6.0 reference I realize this isn't for a browser client script solution.  Although your comment doesn't seem to have the "complete" answer I would normally like the code in the link might be just what the Asker needs to get started.  I will change my recommendation.  Hopefully the Asker will post so we can know what the result was.

    Changed recommendation:  Accept: EddieShipman {18800167}

Please post any objections or questions.  Thanks again EddieShipman for your reply.

b0lsc0tt
EE Cleanup Volunteer
0
 
LVL 26

Expert Comment

by:EddieShipman
ID: 19525088
Yes, it should have been placed in the VB TA. OP=Original Poster.
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 19525697
It was actually cross-posted, here and in VB.  Thanks for explaining OP; I guesses what you meant but couldn't figure out the exact words. :)

bol
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 19544754
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to implement server side field validation and display customized error messages to the client.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question