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: Wed, 19 Mar 2008 10:46:06 -0500,    group: microsoft.public.inetsdk.programming.webbrowser_ctl        back       


Is it possible   
Hi ,

I posted a question earlier about executing a script from a BHO in Vista. I 
am beginning to think that is not possible to create a script element, 
insert it in an HTML document and execute it within Vista. It seems no 
matter what I do the script element is not accessable. Is this true or am I 
missing a step for Vista.

Thanks,
Tom
date: Wed, 19 Mar 2008 10:46:06 -0500   author:   Tom

Re: Is it possible   
Tom a écrit :
> Hi ,
> 
> I posted a question earlier about executing a script from a BHO in Vista. I 
> am beginning to think that is not possible to create a script element, 
> insert it in an HTML document and execute it within Vista. It seems no 
> matter what I do the script element is not accessable. Is this true or am I 
> missing a step for Vista.
> 
> Thanks,
> Tom 
> 
> 

This is possible :

1/ Get document element (IHTMLDocument2)
2/ Create a script element pDoc->createElement
3/ Get first child of the body element (get_firstChild)
4/ insert your script element (pNode->insertBefore)

The script element I am inserting has a src="http://...". I never tried 
with inline script data.

Do not use "appendChild" method from the body element, this does not 
work (see 
http://channel9.msdn.com/wiki/default.aspx/Channel9.InternetExplorerProgrammingBugs)

Hope this helps.

-- 
Best Regards / Cordialement

====================
Jean-Fabrice Rabaute
CORE SERVICES :: Software/Web development & Consulting services

http://www.debugbar.com : The most advanced WEB development tool for 
Internet Explorer
http://www.core-services.fr - {Enjoy the future today}
date: Wed, 19 Mar 2008 19:21:02 +0100   author:   Jean-Fabrice RABAUTE

Re: Is it possible   
Thank you for your input Jean-Fabrice.

The story gets even more cloudy. It turns out that my BHO is working on 
Vista Ultimate and Vista Enterprise. BUT it is not working on the Vista 
Business machine that I have. It happens that the Vista Business machine is 
a development machine and I do have VS 2005 SP1 on it. The other variable is 
the Business Vista machine has Windows Live One running also.

BTW - I am using AppendChild - I will try to modfiy that section of code to 
see if that makes any difference.

Thanks again for your input. It is greatly appreciated.








"Jean-Fabrice RABAUTE"  wrote in message 
news:47e159a6$0$9454$426a74cc@news.free.fr...
> Tom a écrit :
>> Hi ,
>>
>> I posted a question earlier about executing a script from a BHO in Vista. 
>> I am beginning to think that is not possible to create a script element, 
>> insert it in an HTML document and execute it within Vista. It seems no 
>> matter what I do the script element is not accessable. Is this true or am 
>> I missing a step for Vista.
>>
>> Thanks,
>> Tom
>
> This is possible :
>
> 1/ Get document element (IHTMLDocument2)
> 2/ Create a script element pDoc->createElement
> 3/ Get first child of the body element (get_firstChild)
> 4/ insert your script element (pNode->insertBefore)
>
> The script element I am inserting has a src="http://...". I never tried 
> with inline script data.
>
> Do not use "appendChild" method from the body element, this does not work 
> (see 
> http://channel9.msdn.com/wiki/default.aspx/Channel9.InternetExplorerProgrammingBugs)
>
> Hope this helps.
>
> -- 
> Best Regards / Cordialement
>
> ====================
> Jean-Fabrice Rabaute
> CORE SERVICES :: Software/Web development & Consulting services
>
> http://www.debugbar.com : The most advanced WEB development tool for 
> Internet Explorer
> http://www.core-services.fr - {Enjoy the future today}
date: Wed, 19 Mar 2008 14:02:31 -0500   author:   Tom

Google
 
Web ureader.com


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