Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Tue, 23 Oct 2007 00:30:17 -0700,    group: microsoft.public.inetsdk.programming.webbrowser_ctl        back       


How to catch onload event from C++?   
Hi,

I am looking for a way to catch body tag's onload event from my C++
code.  I see some post suggesting to sink the event from
OnDocumentComplete method, but it looks like sometimes the onload
event will fire before OnDocumentComplete comes.

Thanks
date: Tue, 23 Oct 2007 00:30:17 -0700   author:   unknown

Re: How to catch onload event from C++?   
wrote in message
news:1193124617.059662.145500@q3g2000prf.googlegroups.com
> I am looking for a way to catch body tag's onload event from my C++
> code.  I see some post suggesting to sink the event from
> OnDocumentComplete method, but it looks like sometimes the onload
> event will fire before OnDocumentComplete comes.

I'm not sure I understand. Why do you want to catch onload? If your goal 
is to determine when the page is fully loaded, just handle 
DocumentComplete. What exactly are you trying to do?
-- 
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, 23 Oct 2007 07:45:37 -0400   author:   Igor Tandetnik

Re: How to catch onload event from C++?   
What I want is to execute some code at the same time when <body>'s
onload is execute, but not after the page is fully loaded. So my code
executes before any other script code on page.

On Oct 23, 7:45 pm, "Igor Tandetnik"  wrote:
>  wrote in message
>
> news:1193124617.059662.145500@q3g2000prf.googlegroups.com
>
> > I am looking for a way to catch body tag'sonloadevent from my C++
> > code.  I see some post suggesting to sink the event from
> > OnDocumentComplete method, but it looks like sometimes theonload
> > event will fire before OnDocumentComplete comes.
>
> I'm not sure I understand. Why do you want to catchonload? If your goal
> is to determine when the page is fully loaded, just handle
> DocumentComplete. What exactly are you trying to do?
> --
> 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: Fri, 02 Nov 2007 07:16:24 -0000   author:   unknown

Re: How to catch onload event from C++?   
wrote in message
news:1193987784.138728.259100@q5g2000prf.googlegroups.com
> What I want is to execute some code at the same time when <body>'s
> onload is execute, but not after the page is fully loaded. So my code
> executes before any other script code on page.

What do you plan to do for a page like this?

<html>
<body onload="alert('in onload');">

<script>
alert('I run before onload');
document.write('Generated by script<br>');
</script>

Hello, world
</body>
</html>

-- 
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: Fri, 2 Nov 2007 08:10:49 -0400   author:   Igor Tandetnik

Re: How to catch onload event from C++?   
Yes. I want to execute some code from my hosting program, at the
moment that the page loaded but before other script started. I think
the similar place is when <body>'s onload executes.



On Nov 2, 8:10 pm, "Igor Tandetnik"  wrote:
>  wrote in message
>
> news:1193987784.138728.259100@q5g2000prf.googlegroups.com
>
> > What I want is to execute some code at the same time when <body>'s
> > onload is execute, but not after the page is fully loaded. So my code
> > executes before any other script code on page.
>
> What do you plan to do for a page like this?
>
> <html>
> <body onload="alert('in onload');">
>
> <script>
> alert('I run before onload');
> document.write('Generated by script<br>');
> </script>
>
> Hello, world
> </body>
> </html>
>
> --
> 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: Sun, 04 Nov 2007 23:47:40 -0800   author:   unknown

Re: How to catch onload event from C++?   
wrote in message
news:1194248860.920843.304880@v23g2000prn.googlegroups.com
> Yes. I want to execute some code from my hosting program, at the
> moment that the page loaded but before other script started. I think
> the similar place is when <body>'s onload executes.

I showed you an example where script runs _before_ the page is fully 
loaded. Thus, in general, it is impossible to do something after the 
page is fully loaded but before any script on it executes, because there 
may not be any such point in time.
-- 
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, 5 Nov 2007 07:53:02 -0500   author:   Igor Tandetnik

Google
 
Web ureader.com


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