473,597 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can I embed an IE control in a webpage?

jim
OK...Don't ask why - it'll just make ya mad. It makes me mad just thinking
about it. I swear....if I didn't need this job, I'd tell 'em where to embed
their webbrowser control. But, since I do need it, here are my questions...

Can I embed an IE activex control in a webpage? I basically would like to
be able to embed the same component used to create IE-based browsers into a
webpage.

Since IE is already on Windows PCs already, would they have to load or
register the component? I wouldn't think so.

Can I put it in a DIV that will resize with the page?

I Googled for an example of doing this (embedding an IE webbrowser control
in a freakin' webpage), but have come up dry so far. Anybody know of any
code showing such lunacy?

Thanks for your help!

jim
Sep 14 '07 #1
14 1899
jim wrote:
OK...Don't ask why - it'll just make ya mad. It makes me mad just thinking
about it. I swear....if I didn't need this job, I'd tell 'em where to embed
their webbrowser control. But, since I do need it, here are my questions...

Can I embed an IE activex control in a webpage? I basically would like to
be able to embed the same component used to create IE-based browsers into a
webpage.

Since IE is already on Windows PCs already, would they have to load or
register the component? I wouldn't think so.

Can I put it in a DIV that will resize with the page?

I Googled for an example of doing this (embedding an IE webbrowser control
in a freakin' webpage), but have come up dry so far. Anybody know of any
code showing such lunacy?

Thanks for your help!

jim

What is the goal? Wouldn't you get the same effect by just embedding the
activex control directly rather than embedding the IE control and
loading the activex control in it?

--
http://weblog.mkronline.com/
Sep 14 '07 #2
yes, though the users may be warned about running an active/x control.

you can get the same effect with an iframe (which is really a seperate
ie instance and has most of the same events).

you can put an iframe or active/x control in a div, but they will not
resize on their own. you will need client script to size them.

-- bruce (sqlwork.com)

jim wrote:
OK...Don't ask why - it'll just make ya mad. It makes me mad just thinking
about it. I swear....if I didn't need this job, I'd tell 'em where to embed
their webbrowser control. But, since I do need it, here are my questions...

Can I embed an IE activex control in a webpage? I basically would like to
be able to embed the same component used to create IE-based browsers into a
webpage.

Since IE is already on Windows PCs already, would they have to load or
register the component? I wouldn't think so.

Can I put it in a DIV that will resize with the page?

I Googled for an example of doing this (embedding an IE webbrowser control
in a freakin' webpage), but have come up dry so far. Anybody know of any
code showing such lunacy?

Thanks for your help!

jim

Sep 14 '07 #3
Even though you said "Don't ask why - it'll just make ya mad".

I'm curious on why in the world would you want the IE control embedded in a
web page?

"jim" <ji*@home.netwr ote in message
news:oX******** **********@bign ews8.bellsouth. net...
OK...Don't ask why - it'll just make ya mad. It makes me mad just
thinking about it. I swear....if I didn't need this job, I'd tell 'em
where to embed their webbrowser control. But, since I do need it, here
are my questions...

Can I embed an IE activex control in a webpage? I basically would like to
be able to embed the same component used to create IE-based browsers into
a webpage.

Since IE is already on Windows PCs already, would they have to load or
register the component? I wouldn't think so.

Can I put it in a DIV that will resize with the page?

I Googled for an example of doing this (embedding an IE webbrowser control
in a freakin' webpage), but have come up dry so far. Anybody know of any
code showing such lunacy?

Thanks for your help!

jim


Sep 14 '07 #4
jim

"Michael Robinson" <mk*@mkronline. comwrote in message
news:69******** *************** ****@ALLTEL.NET ...
jim wrote:
>OK...Don't ask why - it'll just make ya mad. It makes me mad just
thinking about it. I swear....if I didn't need this job, I'd tell 'em
where to embed their webbrowser control. But, since I do need it, here
are my questions...

Can I embed an IE activex control in a webpage? I basically would like
to be able to embed the same component used to create IE-based browsers
into a webpage.

Since IE is already on Windows PCs already, would they have to load or
register the component? I wouldn't think so.

Can I put it in a DIV that will resize with the page?

I Googled for an example of doing this (embedding an IE webbrowser
control in a freakin' webpage), but have come up dry so far. Anybody
know of any code showing such lunacy?

Thanks for your help!

jim


What is the goal? Wouldn't you get the same effect by just embedding the
activex control directly rather than embedding the IE control and loading
the activex control in it?
The goal (as crazy as it sounds) is actually to have a web page with a
webbrowser control on it.

As far as I can tell (with the horrifically vague set of user specs I have
been given) the goal of the webpage is to teach veiwers how to use an
activex control in a webpage using the webbrowser control. From what I have
been able to glean from this jumble of specs, the end goal for this web page
is to tie together form and webform programming and move on to other activeX
controls in later lessons.

The idea of using the webbrowser control was one thought up by senior
management (who, of course, still can't program the time on their
microwaves). Evidentally the "big boss" thought it would be "cool" to host
one control inside another and the webbrowser control was the first thing
that fell from his crumbling grey mass.

I was assigned this task because they thought it would be a good learning
project for me. (Lucky me.)

Anyway....I have seen some controls hosted in web pages, and they seem to
need some type of class id. Is there a place that I can get this class id?
I assume it would be different for different versions of IE. I also assume
that version 6 of IE would be the most widely distributed version at this
time, and would probably be the one to us.

Know of any code samples that would show hosting activex controls in a div
or adding/removing activex controls dynamically? A dynamically created,
DIV-encased, hosted webbrowser control would be the holy grail of code
samples for this project.

I am Googling my butt off, but have not found a single example of a
webbrowser control being hosted in a web page.

Thanks so much for your help.

jim
Sep 14 '07 #5
jim

"bruce barker" <no****@nospam. comwrote in message
news:Oj******** ******@TK2MSFTN GP05.phx.gbl...
yes, though the users may be warned about running an active/x control.
Even though it it already loaded and registered on their PC?
>
you can get the same effect with an iframe (which is really a seperate ie
instance and has most of the same events).
I think one of the goals of this project is to show the use of the
webbrowser control on a form and a web page and to show how the control can
be used exactly the same on both (with the same events, functions, etc.).
you can put an iframe or active/x control in a div, but they will not
resize on their own. you will need client script to size them.
Got it. Got any cool DIV resize code that I could learn from?
>
-- bruce (sqlwork.com)

jim wrote:
>OK...Don't ask why - it'll just make ya mad. It makes me mad just
thinking about it. I swear....if I didn't need this job, I'd tell 'em
where to embed their webbrowser control. But, since I do need it, here
are my questions...

Can I embed an IE activex control in a webpage? I basically would like
to be able to embed the same component used to create IE-based browsers
into a webpage.

Since IE is already on Windows PCs already, would they have to load or
register the component? I wouldn't think so.

Can I put it in a DIV that will resize with the page?

I Googled for an example of doing this (embedding an IE webbrowser
control in a freakin' webpage), but have come up dry so far. Anybody
know of any code showing such lunacy?

Thanks for your help!

jim
Sep 14 '07 #6
jim

"Mike" <Mi**@community .nospam.comwrot e in message
news:Ou******** ******@TK2MSFTN GP05.phx.gbl...
Even though you said "Don't ask why - it'll just make ya mad".

I'm curious on why in the world would you want the IE control embedded in
a web page?
The goal (as crazy as it sounds) is actually to have a web page with a
webbrowser control on it.

As far as I can tell (with the horrifically vague set of user specs I have
been given) the goal of the webpage is to teach veiwers how to use an
activex control in a webpage using the webbrowser control. From what I have
been able to glean from this jumble of specs, the end goal for this web page
is to tie together form and webform programming and move on to other activeX
controls in later lessons.

The idea of using the webbrowser control was one thought up by senior
management (who, of course, still can't program the time on their
microwaves). Evidentally the "big boss" thought it would be "cool" to host
one control inside another and the webbrowser control was the first thing
that fell from his crumbling grey mass.

I was assigned this task because they thought it would be a good learning
project for me. (Lucky me.)

Anyway....I have seen some controls hosted in web pages, and they seem to
need some type of class id. Is there a place that I can get this class id?
I assume it would be different for different versions of IE. I also assume
that version 6 of IE would be the most widely distributed version at this
time, and would probably be the one to us.

Know of any code samples that would show hosting activex controls in a div
or adding/removing activex controls dynamically? A dynamically created,
DIV-encased, hosted webbrowser control would be the holy grail of code
samples for this project.

I am Googling my butt off, but have not found a single example of a
webbrowser control being hosted in a web page.

Thanks so much for your help.

jim
Sep 14 '07 #7
jim wrote:
>What is the goal? Wouldn't you get the same effect by just embedding the
activex control directly rather than embedding the IE control and loading
the activex control in it?

The goal (as crazy as it sounds) is actually to have a web page with a
webbrowser control on it.

As far as I can tell (with the horrifically vague set of user specs I have
been given) the goal of the webpage is to teach veiwers how to use an
activex control in a webpage using the webbrowser control. From what I have
been able to glean from this jumble of specs, the end goal for this web page
is to tie together form and webform programming and move on to other activeX
controls in later lessons.

The idea of using the webbrowser control was one thought up by senior
management (who, of course, still can't program the time on their
microwaves). Evidentally the "big boss" thought it would be "cool" to host
one control inside another and the webbrowser control was the first thing
that fell from his crumbling grey mass.
In other words, there is no real goal at all. You are just doing it
because someone thought that it should be cool.

I can't help to think that it would be confusing to use a webbrowser
control as an example. Web programming is complicated enough, without
having a browser in the browser.

I really think that you should suggest to use a different control as an
example. A control that has even the slightest possibility to actually
be useful in a web page.
I was assigned this task because they thought it would be a good learning
project for me. (Lucky me.)

Anyway....I have seen some controls hosted in web pages, and they seem to
need some type of class id. Is there a place that I can get this class id?
I assume it would be different for different versions of IE. I also assume
that version 6 of IE would be the most widely distributed version at this
time, and would probably be the one to us.

Know of any code samples that would show hosting activex controls in a div
or adding/removing activex controls dynamically?A dynamically created,
DIV-encased, hosted webbrowser control would be the holy grail of code
samples for this project.

I am Googling my butt off, but have not found a single example of a
webbrowser control being hosted in a web page.
That's because they aren't. I have never ever even heard of anyone
wanting to do this, as it's entirely pointless.

--
Göran Andersson
_____
http://www.guffa.com
Sep 15 '07 #8
On 15 Sep, 00:52, "jim" <j...@home.netw rote:
"Mike" <M...@community .nospam.comwrot e in message

news:Ou******** ******@TK2MSFTN GP05.phx.gbl...
Even though you said "Don't ask why - it'll just make ya mad".
I'm curious on why in the world would you want the IE control embedded in
a web page?

The goal (as crazy as it sounds) is actually to have a web page with a
webbrowser control on it.

As far as I can tell (with the horrifically vague set of user specs I have
been given) the goal of the webpage is to teach veiwers how to use an
activex control in a webpage using the webbrowser control. From what I have
been able to glean from this jumble of specs, the end goal for this web page
is to tie together form and webform programming and move on to other activeX
controls in later lessons.

The idea of using the webbrowser control was one thought up by senior
management (who, of course, still can't program the time on their
microwaves). Evidentally the "big boss" thought it would be "cool" to host
one control inside another and the webbrowser control was the first thing
that fell from his crumbling grey mass.

I was assigned this task because they thought it would be a good learning
project for me. (Lucky me.)

Anyway....I have seen some controls hosted in web pages, and they seem to
need some type of class id. Is there a place that I can get this class id?
I assume it would be different for different versions of IE. I also assume
that version 6 of IE would be the most widely distributed version at this
time, and would probably be the one to us.

Know of any code samples that would show hosting activex controls in a div
or adding/removing activex controls dynamically? A dynamically created,
DIV-encased, hosted webbrowser control would be the holy grail of code
samples for this project.

I am Googling my butt off, but have not found a single example of a
webbrowser control being hosted in a web page.

Thanks so much for your help.

jim
Hi Jim

You have my sympathies if you are being driven by a boss who asks the
impossible because he/she doesn't know what he/she is talking about.

The best approach is to go back and agree what the actual (broader)
objective is and allow you to find the best solution.

I think you need to make it clear what the difference is between
client-side and server-side technology. ASP.NET uses Java-script to
create intelligent client-side behaviour to avoid round-trips (e.g.
validation controls) but it is not equipped to go much beyond that.
Active-X control simulation is not in its porfolio.

Unless of course anyone knows any different, but I doubt it.

Sep 15 '07 #9
jim

"Göran Andersson" <gu***@guffa.co mwrote in message
news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
jim wrote:
>>What is the goal? Wouldn't you get the same effect by just embedding the
activex control directly rather than embedding the IE control and
loading the activex control in it?

The goal (as crazy as it sounds) is actually to have a web page with a
webbrowser control on it.

As far as I can tell (with the horrifically vague set of user specs I
have been given) the goal of the webpage is to teach veiwers how to use
an activex control in a webpage using the webbrowser control. From what
I have been able to glean from this jumble of specs, the end goal for
this web page is to tie together form and webform programming and move on
to other activeX controls in later lessons.

The idea of using the webbrowser control was one thought up by senior
management (who, of course, still can't program the time on their
microwaves). Evidentally the "big boss" thought it would be "cool" to
host one control inside another and the webbrowser control was the first
thing that fell from his crumbling grey mass.

In other words, there is no real goal at all. You are just doing it
because someone thought that it should be cool.

I can't help to think that it would be confusing to use a webbrowser
control as an example. Web programming is complicated enough, without
having a browser in the browser.

I really think that you should suggest to use a different control as an
example. A control that has even the slightest possibility to actually be
useful in a web page.
I *so* agree with you. I suggested a date picker control. It is useful in
both places, consumes less resources and is less confusing than this puzzle
wrapped in an enigma of a webpage that some (I hope) drunken manager
scribbled onto a bar napkin.
>
>I was assigned this task because they thought it would be a good learning
project for me. (Lucky me.)

Anyway....I have seen some controls hosted in web pages, and they seem to
need some type of class id. Is there a place that I can get this class
id? I assume it would be different for different versions of IE. I also
assume that version 6 of IE would be the most widely distributed version
at this time, and would probably be the one to us.

Know of any code samples that would show hosting activex controls in a
div or adding/removing activex controls dynamically?A dynamically
created, DIV-encased, hosted webbrowser control would be the holy grail
of code samples for this project.

I am Googling my butt off, but have not found a single example of a
webbrowser control being hosted in a web page.

That's because they aren't. I have never ever even heard of anyone wanting
to do this, as it's entirely pointless.
The only point here that I can see is keeping my job. Doing this is like
placing a calendar control inside another calendar control. Maybe you could
do it, but why would you?

Sometimes I think that people just get drunk with power and the "do it
because I say so" rule goes into effect. That seems to be the case here.

jim
Sep 16 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
4480
by: Anna | last post by:
Hi all. I want to embed the EMBED tag in the object tag. I understood that I need to provide a PARAM tag inside the OBJECT whose value will hold the content of EMBED src attribute, but after that I've got confused. For example, what should be put into classid and codebase attributes of the OBJECT now embedding the EMBED tag?
8
2446
by: jalexa9898 | last post by:
I am asking because I wrote some flex that was put in xml and I want to embed it in some html is this hard to do?
1
2677
by: james | last post by:
Hi Guys, Does anyone know how I could embed IE7 in a Windows Form, with the Address Bar, Tabs and navigation buttons? At my work we have a kiosk application that needs a web browser. We basically want embed all of ie7, but don't let people close it. I see the WebBrowser control in C#, but that only displays the rendered webpage part of ie7. Thanks, James
18
2061
by: jim | last post by:
OK...Don't ask why - it'll just make ya mad. It makes me mad just thinking about it. I swear....if I didn't need this job, I'd tell 'em where to embed their webbrowser control. But, since I do need it, here are my questions... Can I embed an IE activex control in a webpage? I basically would like to be able to embed the same component used to create IE-based browsers into a webpage. Since IE is already on Windows PCs already, would...
0
937
by: sololaura | last post by:
Hello this is The Latin Explosion I have a webpage at latinexplosion.com which is sustained by Network solutions. I am a latin american live band and want to embed a player on my website. I have 1 minute soundclips of my tunes that I would like to add, so that when someone wants to listen to them they can click on the title and it would play automatically rather than having to wait for the soundclip to upload in a minute or so. Network...
10
2845
by: Php Developer | last post by:
Hi, please help me i want to embed font in a webpage.I like it to show in IE as well as in FF..Is there any technique for that.Thanks a lot.
0
7969
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7886
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8272
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8381
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8035
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6688
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5847
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3886
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2404
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.