mital / mcrux

Automatically exported from code.google.com/p/mcrux
0 stars 0 forks source link

Spike out C++ to JavaScript Calls #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I should be able to call a JavaScript function from within my C++ code.

Original issue reported on code.google.com by mital.d....@gmail.com on 13 Dec 2008 at 2:38

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by mital.d....@gmail.com on 28 Dec 2008 at 3:12

GoogleCodeExporter commented 9 years ago
added a function called callJavaScriptFunction()
now u can call
mcrux.callJavaScriptFunction("myfunc");
where myfunc() is a JavaScriptFunction defined in custom javascript.

Original comment by mital.d....@gmail.com on 13 Feb 2009 at 1:23

GoogleCodeExporter commented 9 years ago
I can now pass a function itself to my callback which can call the given 
function

mcrux.callJavaScriptFunction1(function() 
    {
        alert("my anonymous function called");
    }
 };

Original comment by mital.d....@gmail.com on 13 Feb 2009 at 12:10

GoogleCodeExporter commented 9 years ago
we have figured out how to do the C++ to JavaScript calls :)

Original comment by mital.d....@gmail.com on 21 Feb 2009 at 2:51