how to call a C function from Java script?.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rameshs
    New Member
    • Dec 2006
    • 1

    how to call a C function from Java script?.

    hello,

    for me, I want to get a SSID (name) from a function when click a button and display it.
    I am using " cliSet.c " C file for storing that name. In that C file I am using nameSet() function foe seting name and nameGet() for getting name.

    So, is it possible to call that C function from this java script ?.
    not that whole c function.
  • b1randon
    Recognized Expert New Member
    • Dec 2006
    • 171

    #2
    Originally posted by rameshs
    hello,

    for me, I want to get a SSID (name) from a function when click a button and display it.
    I am using " cliSet.c " C file for storing that name. In that C file I am using nameSet() function foe seting name and nameGet() for getting name.

    So, is it possible to call that C function from this java script ?.
    not that whole c function.
    You will need to use AJAX and call your C function on the server. JS is client only so you will not be able to issue any commands for your server from the client (without making another request as is done with AJAX).

    Comment

    Working...