473,386 Members | 2,050 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,386 software developers and data experts.

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

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
6 1329
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
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

..... 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
"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Stewart | last post by:
Dear comp.lang.javascript, I have more than once wanted to manipulate the contents of select boxes dynamically, whilst the boxes contain <optgroup> tags. Manipulation of a select box containing...
2
by: Jeff | last post by:
Can I manipulate the properties of pure HTML controls (i.e. not server side controls) from my aspx.cs Page_Load event? If so, I don't see the control listed by intellisense. I gave the control a...
5
by: David Elliott | last post by:
I need a control on a Web Page that can accept an HTML Document and will display it. Any help would be appreciated. Thanks, Dave Here is what I was trying...
2
by: marty.overdear | last post by:
I am re-writing an access application using vb.net and oracle. Access has a drop down list that shows value 'a'. When selecting the pulldown list, it shows 'a' | 'b' | 'c' after selecting the...
1
by: Untitled | last post by:
I currently have a web application with hundreds of pages and controls. There currently is no HTML Encoding done anywhere. Data to the application come from all different places such as UI,...
3
roula
by: roula | last post by:
Hi, I'm modifying a template (flash menu with html pages), when you click on the flash menu (about us for example) the corresponding html page is displayed, and the "about us" flash menu is...
6
by: clintonG | last post by:
Can anybody make sense of this crazy and inconsistent results? // IE7 Feed Reading View disabled displays this raw XML <?xml version="1.0" encoding="utf-8" ?> <!-- AT&T HTML entities & XML...
0
by: archcommus | last post by:
Hey all, First post on thescripts, this site has answered many of my questions in the past via searching. Basically, my philosophy on the taskbar and notification area is that what's displayed...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.