Hi Fusers! Im trying to pass 2 params to a php web service which returns a json. I’ve do this with native android and its working fine.
I misunderstand, from your original post it appears the POST using fetch actually works properly? From your monitor and output code it looks just fine to me. Can you confirm that it works, or do you need help getting that part to work?
For the second part:
Also I wanna check the result and go to a whole different screen. How can I do it??
This part is fairly easy; the way to do it is to create an Observable that will contain the name of the current page you want to go to. Then you can bind a Navigation or PageControl's Active property to that Observable, and you should be good to go. Our Tab bar navigation example shows how to do this. An even simpler example (that also fetches data and then changes pages when it arrives) would look like this:
Still the first part is not working. It always sends an error code, not a success message. I said “I’ve do this with native android and its working fine” is just to make sure the url and the parameters are correct.
I’m not sure about this line,
var requestObject = {“Email”:username.value, “Password”:password.value};
Is this correct? I meant the way I’m binding the parameters?