intercepting Navigate2 and returning results directly to browser

  • Thread starter Thread starter Peter Kaptein
  • Start date Start date
P

Peter Kaptein

== Parsing the result directly to the browser
In VB (C#, C++ ...) it is possible to embed the browser component inside an
..EXE

After intercepting the Navigate2 event and send a "cancel=true" back, is
there a way to return specific code directly to the browser instead of via a
redirect?

I have seen a method saving it as a file and then redirecting the browser to
that file, but it would be nicer to return it directly to IE.


== An example I found
A solution I found presents the browser component of MS
Internet Explorer and intercepts the Navigate2 event: I did not test it on a
Desktop-machine yet.
http://www.codeproject.com/dotnet/usingaspruntime.asp?print=true

It requires .NET on your machine (I think)
 
Peter Kaptein said:
== Parsing the result directly to the browser
In VB (C#, C++ ...) it is possible to embed the browser component inside an
.EXE

After intercepting the Navigate2 event and send a "cancel=true" back, is
there a way to return specific code directly to the browser instead of via a
redirect?

In a simple case, see

http://msdn.microsoft.com/workshop/browser/webbrowser/tutorials/webocstream.asp

For more control over how relative URLs in the document are resolved,
see

http://groups.google.com/[email protected]

If you want ultimate control, you can implement an asynchronous
pluggable protocol (APP) handler. Something along the lines of

http://groups.google.com/groups?threadm=u#[email protected]

--
With best wishes,
Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top