Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Mon, 23 Jun 2008 06:21:04 -0700 (PDT),    group: microsoft.public.win32.programmer.ole        back       


How to get the HTML element in a FRAM/IFRAM through IHTMLDocument2::elementFromPoint()   
Hi,

Suppose I have a Frame HTML like this:
<HTML>
<head>...</head>
<frameset>
  <frame name='frm1' src='frm1.html' />
  <frame name='frm2' src='frm2.html' />
</frameset>
</HTML>

I have used IHTMLDocument2::elementFromPoint() to get an element which
tag name is "HTML" from the IE. I think this "HTML" element belongs
either to "frm1" or "frm2". But I do not know how to get the document
within this "HTML" element. This element do not have IWebBrowser2 nor
IHTMLWindow2 interface.

How can I get the DOM within the "HTML" element I get? Or, is the
element I get really the HTML element of the frames?

Thanks!
date: Mon, 23 Jun 2008 06:21:04 -0700 (PDT)   author:   unknown

Re: How to get the HTML element in a FRAM/IFRAM through IHTMLDocument2::elementFromPoint()   
davidshen84@googlemail.com wrote:
> I have used IHTMLDocument2::elementFromPoint() to get an element which
> tag name is "HTML" from the IE.
>
> How can I get the DOM within the "HTML" element I get?

http://groups.google.com/group/microsoft.public.inetsdk.programming.mshtml_hosting/browse_frm/thread/590a0c6792f02fa5
-- 
With best wishes,
    Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not 
necessarily a good idea. It is hard to be sure where they are going to 
land, and it could be dangerous sitting under them as they fly 
overhead. -- RFC 1925
date: Mon, 23 Jun 2008 11:20:22 -0400   author:   Igor Tandetnik

Re: How to get the HTML element in a FRAM/IFRAM through IHTMLDocument2::elementFromPoint()   
Hi,

In the link you give me, you said "
elementFromPoint
returns a frame element if the point falls inside a frame or iframe.
You
can find out whether this is the case by querying the element for
IWebBrowser2."

But in my case, I got a "HTML" element from the "elementFromPoint"
call. And I tried to query its IWebBrowser2 interface, but failed.
Could you help?


On Jun 23, 11:20 pm, "Igor Tandetnik"  wrote:
> davidshe...@googlemail.com wrote:
> > I have used IHTMLDocument2::elementFromPoint() to get an element which
> > tag name is "HTML" from the IE.
>
> > How can I get the DOM within the "HTML" element I get?
>
> http://groups.google.com/group/microsoft.public.inetsdk.programming.m...
> --
> With best wishes,
>     Igor Tandetnik
>
> With sufficient thrust, pigs fly just fine. However, this is not
> necessarily a good idea. It is hard to be sure where they are going to
> land, and it could be dangerous sitting under them as they fly
> overhead. -- RFC 1925
date: Mon, 23 Jun 2008 18:23:43 -0700 (PDT)   author:   unknown

Re: How to get the HTML element in a FRAM/IFRAM through IHTMLDocument2::elementFromPoint()   
wrote in message
news:d9ccbfee-e652-4c67-a2d9-a3f6c84a8d97@a1g2000hsb.googlegroups.com
> In the link you give me, you said "
> elementFromPoint
> returns a frame element if the point falls inside a frame or iframe.
> You
> can find out whether this is the case by querying the element for
> IWebBrowser2."
>
> But in my case, I got a "HTML" element from the "elementFromPoint"
> call. And I tried to query its IWebBrowser2 interface, but failed.
> Could you help?

Do you have a URL I can navigate to and test on?
-- 
With best wishes,
    Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not 
necessarily a good idea. It is hard to be sure where they are going to 
land, and it could be dangerous sitting under them as they fly 
overhead. -- RFC 1925
date: Mon, 23 Jun 2008 21:49:18 -0400   author:   Igor Tandetnik

Re: How to get the HTML element in a FRAM/IFRAM through IHTMLDocument2::elementFromPoint()   
The site I originally played with is an internal site which cannot be
accessed out side. But I also tried iGoogle, and result is the same.

Thanks a lot for your help!


On Jun 24, 9:49 am, "Igor Tandetnik"  wrote:
>  wrote in message
>
> news:d9ccbfee-e652-4c67-a2d9-a3f6c84a8d97@a1g2000hsb.googlegroups.com
>
> > In the link you give me, you said "
> > elementFromPoint
> > returns a frame element if the point falls inside a frame or iframe.
> > You
> > can find out whether this is the case by querying the element for
> > IWebBrowser2."
>
> > But in my case, I got a "HTML" element from the "elementFromPoint"
> > call. And I tried to query its IWebBrowser2 interface, but failed.
> > Could you help?
>
> Do you have a URL I can navigate to and test on?
> --
> With best wishes,
>     Igor Tandetnik
>
> With sufficient thrust, pigs fly just fine. However, this is not
> necessarily a good idea. It is hard to be sure where they are going to
> land, and it could be dangerous sitting under them as they fly
> overhead. -- RFC 1925
date: Mon, 23 Jun 2008 23:08:09 -0700 (PDT)   author:   unknown

Re: How to get the HTML element in a FRAM/IFRAM through IHTMLDocument2::elementFromPoint()   
Sorry, I forgot to mention that I am working on IE 7. I do not have IE
6 right now, I will test on it later if possible and let you know the
result.


On Jun 24, 2:08 pm, "davidshe...@googlemail.com"
 wrote:
> The site I originally played with is an internal site which cannot be
> accessed out side. But I also tried iGoogle, and result is the same.
>
> Thanks a lot for your help!
>
> On Jun 24, 9:49 am, "Igor Tandetnik"  wrote:
>
> >  wrote in message
>
> >news:d9ccbfee-e652-4c67-a2d9-a3f6c84a8d97@a1g2000hsb.googlegroups.com
>
> > > In the link you give me, you said "
> > > elementFromPoint
> > > returns a frame element if the point falls inside a frame or iframe.
> > > You
> > > can find out whether this is the case by querying the element for
> > > IWebBrowser2."
>
> > > But in my case, I got a "HTML" element from the "elementFromPoint"
> > > call. And I tried to query its IWebBrowser2 interface, but failed.
> > > Could you help?
>
> > Do you have a URL I can navigate to and test on?
> > --
> > With best wishes,
> >     Igor Tandetnik
>
> > With sufficient thrust, pigs fly just fine. However, this is not
> > necessarily a good idea. It is hard to be sure where they are going to
> > land, and it could be dangerous sitting under them as they fly
> > overhead. -- RFC 1925
date: Mon, 23 Jun 2008 23:53:36 -0700 (PDT)   author:   unknown

Re: How to get the HTML element in a FRAM/IFRAM through IHTMLDocument2::elementFromPoint()   
Oh~~~ I am so sorry about this...It's all about BUG...I made a typo
error in my code... :)


On Jun 24, 2:53 pm, "davidshe...@googlemail.com"
 wrote:
> Sorry, I forgot to mention that I am working on IE 7. I do not have IE
> 6 right now, I will test on it later if possible and let you know the
> result.
>
> On Jun 24, 2:08 pm, "davidshe...@googlemail.com"
>
>  wrote:
> > The site I originally played with is an internal site which cannot be
> > accessed out side. But I also tried iGoogle, and result is the same.
>
> > Thanks a lot for your help!
>
> > On Jun 24, 9:49 am, "Igor Tandetnik"  wrote:
>
> > >  wrote in message
>
> > >news:d9ccbfee-e652-4c67-a2d9-a3f6c84a8d97@a1g2000hsb.googlegroups.com
>
> > > > In the link you give me, you said "
> > > > elementFromPoint
> > > > returns a frame element if the point falls inside a frame or iframe> > > > You
> > > > can find out whether this is the case by querying the element for
> > > > IWebBrowser2."
>
> > > > But in my case, I got a "HTML" element from the "elementFromPoint"
> > > > call. And I tried to query its IWebBrowser2 interface, but failed.
> > > > Could you help?
>
> > > Do you have a URL I can navigate to and test on?
> > > --
> > > With best wishes,
> > >     Igor Tandetnik
>
> > > With sufficient thrust, pigs fly just fine. However, this is not
> > > necessarily a good idea. It is hard to be sure where they are going to
> > > land, and it could be dangerous sitting under them as they fly
> > > overhead. -- RFC 1925
date: Tue, 24 Jun 2008 00:10:08 -0700 (PDT)   author:   unknown

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us