But reqsync is allways undefined. The script is on the server and if I try it manually in chrome browser on the pc it works, but from the app reqsync is always undefined.
I can do this and when I start the php in the chrome browser( with the complete server path) I see the results. But starting the app in the debugger from chrome browser I can see nothing because there is no return from the ajax call. The debugger jumps into the callback function but reqsync is null.