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: Sat, 15 Dec 2007 17:15:18 +0800,    group: microsoft.public.inetsdk.programming.html_objmodel        back       


Interop Between C# and Javascript   
Suppose I was writing a Browser Hosting program in C#, then
1. How to call a Javascript function within my C# code?
1. How to expose C# events to Javascript?
date: Sat, 15 Dec 2007 17:15:18 +0800   author:   Laser Lu

Re: Interop Between C# and Javascript   
Suppose I was writing a Browser Hosting program in C#, then
1. How to call a Javascript function within my C# code?
2. Is it possible and how to expose C# events to Javascript?
date: Sat, 15 Dec 2007 17:20:31 +0800   author:   Laser Lu

Re: Interop Between C# and Javascript   
On Dec 15, 2:15 am, "Laser Lu"  wrote:
> Suppose I was writing a Browser Hosting program in C#, then
> 1. How to call a Javascript function within my C# code?

execScript

> 1. How to expose C# events to Javascript?

IDispatch interface.
date: Sun, 16 Dec 2007 02:03:04 -0800 (PST)   author:   Nathan Moinvaziri

Re: Interop Between C# and Javascript   
Such a concise answer.:) However, thanks for your reply.

"Nathan Moinvaziri"  wrote in message 
news:0f56a81a-ec39-4959-a788-47f9244ae35e@d21g2000prf.googlegroups.com...
> On Dec 15, 2:15 am, "Laser Lu"  wrote:
>> Suppose I was writing a Browser Hosting program in C#, then
>> 1. How to call a Javascript function within my C# code?
>
> execScript
>
>> 1. How to expose C# events to Javascript?
>
> IDispatch interface.
>
date: Sun, 16 Dec 2007 19:20:08 +0800   author:   Laser Lu

Re: Interop Between C# and Javascript   
1 ExecScript
2 Javascript can handle COM events. You can write a COM visible class and
assign an object of the class to the ObjectForScripting property of the
webbrowser control. But you can also call a javascript function directly.
-- 
Sheng Jiang
Microsoft MVP in VC++
"Laser Lu"  wrote in message
news:#mrH#uvPIHA.5524@TK2MSFTNGP05.phx.gbl...
> Suppose I was writing a Browser Hosting program in C#, then
> 1. How to call a Javascript function within my C# code?
> 2. Is it possible and how to expose C# events to Javascript?
>
>
date: Mon, 17 Dec 2007 13:23:12 -0600   author:   Sheng Jiang[MVP] uss

Google
 
Web ureader.com


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