Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. c# and javascript [modified]

c# and javascript [modified]

Scheduled Pinned Locked Moved C#
csharpjavascriptdata-structurestutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    loyal ginger
    wrote on last edited by
    #1

    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 using

    webBrowser1.Document.InvokeScript("show_line", points);

    Thanks!

    modified on Wednesday, October 6, 2010 11:33 AM

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups