By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,032 Members | 1,141 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,032 IT Pros & Developers. It's quick & easy.

Is there a way to manipulate html before it is displayed ?

P: n/a
Is it possible to do something that will change the html before
the ie6 displayes the page. Does vb offer any browser access?
Nov 21 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Lascar

At this moment there is only interop with IE. I do not believe that you can
change with that before displaying. However you can maybe do that immidiatly
when it is displayed what would probably look the same.

You do not need the axwebbrowser "axshdocvw" but the webbrowser "shdocvw"
and when you instance the object keep in mind to instance it with the
parameter IE.

(In 2005 the webbrowser will be a part of NET 2.0, I don't know if that is
as well an integration for IE)

There is few documentation when it is about IE and not everything will work
as you think it is documented, because it is not always clear what is (for
me) about axshdocvw and what is about shdocvw, therefore probably a hard way
to go.

For the axWebbrowser there are samples enough.

I hope this helps?

Cor
Nov 21 '05 #2

P: n/a
I do not recall the details of the IE object model, but I would ASSuME that
one could change the content of the file.

In any case, one could always do so via Word or FrontPage or, tho I think it
is buggy, WebMatrix.

--
http://www.standards.com/; See Howard Kaikow's web site.
"Cor Ligthert" <no************@planet.nl> wrote in message
news:eq**************@TK2MSFTNGP09.phx.gbl...
Lascar

At this moment there is only interop with IE. I do not believe that you can change with that before displaying. However you can maybe do that immidiatly when it is displayed what would probably look the same.

You do not need the axwebbrowser "axshdocvw" but the webbrowser "shdocvw"
and when you instance the object keep in mind to instance it with the
parameter IE.

(In 2005 the webbrowser will be a part of NET 2.0, I don't know if that is
as well an integration for IE)

There is few documentation when it is about IE and not everything will work as you think it is documented, because it is not always clear what is (for
me) about axshdocvw and what is about shdocvw, therefore probably a hard way to go.

For the axWebbrowser there are samples enough.

I hope this helps?

Cor

Nov 21 '05 #3

P: n/a

..... in which case that would be off-topic
No, what I meant was not that, see Cor's answer.

"Howard Kaikow" <ka****@standards.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I do not recall the details of the IE object model, but I would ASSuME that one could change the content of the file.

In any case, one could always do so via Word or FrontPage or, tho I think it is buggy, WebMatrix.

--
http://www.standards.com/; See Howard Kaikow's web site.
"Cor Ligthert" <no************@planet.nl> wrote in message
news:eq**************@TK2MSFTNGP09.phx.gbl...
Lascar

At this moment there is only interop with IE. I do not believe that you

can
change with that before displaying. However you can maybe do that

immidiatly
when it is displayed what would probably look the same.

You do not need the axwebbrowser "axshdocvw" but the webbrowser "shdocvw" and when you instance the object keep in mind to instance it with the
parameter IE.

(In 2005 the webbrowser will be a part of NET 2.0, I don't know if that is as well an integration for IE)

There is few documentation when it is about IE and not everything will

work
as you think it is documented, because it is not always clear what is (for me) about axshdocvw and what is about shdocvw, therefore probably a hard

way
to go.

For the axWebbrowser there are samples enough.

I hope this helps?

Cor



Nov 21 '05 #4

P: n/a
"Lascar" <La****@hotmail.com.co> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Is it possible to do something that will change the html before
the ie6 displayes the page. Does vb offer any browser access?


If you host IE you can catch the OnBeforeNavigate event. I suppose you could
then cancel IE's navigation, grab the HTML by a seperate routine, modify the
HTML and then push it into the browser? It would be a fair amount of work.

Tim
..NET pros and cons
http://www.itwriting.com/phorum/list.php?f=6
Nov 21 '05 #5

P: n/a
Cor,
Thanks for your reply, but I am a little confused.
First of all, I need to add the control. In the
'Customize Toolbox' window there are two types
of objects:
..net framework objects and
com objects

Now, in the .net framework objects I can find
Web Client
Web Control
Web Service

In the COM objects I find
Microsoft Web Browser.

Did you mean the Microsoft Web Browser?
It comes from shdocvw.dll, but this *is*
AxWebBrowser1 AxSHDocVw.AxWebBrowser
i.e. this is what you see in the properties window
when you select the control.

"Cor Ligthert" <no************@planet.nl> wrote in message
news:eq**************@TK2MSFTNGP09.phx.gbl...
Lascar

At this moment there is only interop with IE. I do not believe that you can change with that before displaying. However you can maybe do that immidiatly when it is displayed what would probably look the same.

You do not need the axwebbrowser "axshdocvw" but the webbrowser "shdocvw"
and when you instance the object keep in mind to instance it with the
parameter IE.

(In 2005 the webbrowser will be a part of NET 2.0, I don't know if that is
as well an integration for IE)

There is few documentation when it is about IE and not everything will work as you think it is documented, because it is not always clear what is (for
me) about axshdocvw and what is about shdocvw, therefore probably a hard way to go.

For the axWebbrowser there are samples enough.

I hope this helps?

Cor


Nov 21 '05 #6

P: n/a
Lascar

I made this sample for you, it is very simple however should give you the
right direction in my opinion.

\\\
'Add from Project menu a reference from
'COM Microsoft Internet Controls
Public Class testIE
Public Shared Sub main()
Dim a As New SHDocVw.InternetExplorer
a.Visible = True
a.Navigate2("http://msdn.microsoft.com/")
End Sub
End Class
///
I hope this helps a little bit?

Cor
Nov 21 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.