JR
asked on
How to include the JavaScript file in dll in C# and use
Experts,
How to include the JavaScript file in dll in C# and use
Thanks,
Jothi
How to include the JavaScript file in dll in C# and use
Thanks,
Jothi
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Why do you want to do this - as Dave rightly points out it makes no sense.
To get "good answer" you need to describe what are you going to do.
e.g. you can host IE browser and execute any JavaScript with:
HtmlElement head = webBrowser1.Document.GetEl ementsByTa gName("hea d")[0];
HtmlElement scriptEl = webBrowser1.Document.Creat eElement(" script");
IHTMLScriptElement element = (IHTMLScriptElement)script El.DomElem ent;
element.text = "function sayHello() { alert('hello') }";
head.AppendChild(scriptEl) ;
webBrowser1.Document.Invok eScript("s ayHello");
ore for example use:
http://javascriptdotnet.codeplex.com/
e.g. you can host IE browser and execute any JavaScript with:
HtmlElement head = webBrowser1.Document.GetEl
HtmlElement scriptEl = webBrowser1.Document.Creat
IHTMLScriptElement element = (IHTMLScriptElement)script
element.text = "function sayHello() { alert('hello') }";
head.AppendChild(scriptEl)
webBrowser1.Document.Invok
ore for example use:
http://javascriptdotnet.codeplex.com/
ASKER
closed