I am trying to access an external js function as follows, but it is not working.
I used “untyped” to get past the compiler errors.
Using Haxe 4 , updated in last 15 days.
index.html
function sendToDb(pData){ $.post("http://localhost/binsort/insertData.php", pData); }
Haxe
static public function addUserToWinList():Void
{
var data = {
username: username_Str,
won: 0
};
untyped Browser.window.document.sendToDb(data);
}