Howto - run "c" executable from html page using jquery

Howto - run "c" executable from html page using jquery


I want to access a "c" executable from my html page. ie: I want to call "helloworld" through a "javascript" function such as:

  1. .......

    <head>
        <script type="text/javascript">
            function runHelloWorld() {
           
              CODE TO CALL =>  /$PATH/helloworld

             }
        </script>
    </head>

    <body>
        <a  href="javascript:runHelloWorld()">Run Hello World </a>
    </body
    .......

I have seen discussions re: "network.protocol-handler.app" but all the talk and examples are regarding "Windows" with ActiveX (which I know nothing about). I use Ubuntu 14.10 with firefox.

Would appreciate if anyone could give me an example using Linux w/ jquery, php, AJAX or whatever.

Thanks,

R