B4J Question [BANano] inline php problem

Michael1968

Active Member
Licensed User
Hi,
I'm playing a bit with BANano ->Inline PhP example.

I add the Code from this Tutorial https://www.b4x.com/android/forum/threads/banano-inline-php-server-code.101224/#content to the BANano and BANano Skeleton Demo.

compiling is ok
Page is hostet on a Pi running php Server

If I click the Button i get this error:

Chrome Console:
app.js:135 Uncaught (in promise) ReferenceError: callAjaxWait is not defined
at banano_demo.button1_click (app.js:135)
at HTMLButtonElement.<anonymous> (app.js:5)
at HTMLButtonElement.<anonymous> (app.js:3)
at HTMLButtonElement.n (app.js:3)
Chrome Source:
// [124] Dim res As String = BANano.CallInlinePHPWait( {62} , CreateMap( {63} : {64} ))
_res=await callAjaxWait('http://192.168.0.150/myapi.php','POST','json', JSON.stringify({"request": "SayHello", "params": {"Name":"BANano"}}),false,null);
// [125] log(res)
console.log(_res);
Thanks in advance
Michael1968
 

Kiffi

Well-Known Member
Licensed User
Confirmed.

CallInlinePHPWait() doesn't work but CallInlinePHP() works as expected.
 
Top