Hi people,
I need to call a c++ builder function from a HTML button.
My HTML is something like this:
I know that i can call some functions using the button events (async or not) but i need to call a function with parameters like that:
Javascript Code:
C++ Builder Code:
Is this possible?
Thanks to all
I need to call a c++ builder function from a HTML button.
My HTML is something like this:
Code:
<button id="WHATEVER" onClick="add(2,2);">ADD 2 + 2</button>
I know that i can call some functions using the button events (async or not) but i need to call a function with parameters like that:
Javascript Code:
Code:
function add(a,b)
{
var result = a + b;
DisplayNumber(result);
}
C++ Builder Code:
Code:
void __fastcall TForm1::DisplayNumber(int number)
{
ShowMessage(number);
}
Is this possible?
Thanks to all