c# and javascript [modified]
C#
1
Posts
1
Posters
0
Views
1
Watching
-
From my WinForm application I have a need to call javascript function from a WebBroswer control using something like this:
webBrowser1.Document.InvokeScript("show_line",...);
The show_line function is in javascript and looks like this:
function show_line(points)
{
for(var i=0;i<points.length;i++)
{
//using points[i] to construct line
}
//show_line code goes here....
}In other words, the parameter
**points**
is an array. My questions is how to pass an array of double from C# to javascript usingwebBrowser1.Document.InvokeScript("show_line", points);
Thanks!
modified on Wednesday, October 6, 2010 11:33 AM