I need to get a response from a server code var to the app object that I display to user. Please is there any tutorial on how to do this?
Thank you sir. But I am still not getting it.
I have a label in my app call distance,
I need to pass or (mapped) the result of a calculated var from the server code
var dis = getDistance(lat, latitude, lng, longitude);
to label distance in my app.
Please I need a guide, thanks.
1 Return needed response(should contain needed information) in your server code.
2 Import server code in the app.
3 On the test tab - click test and then populate response parameters with actual response.
4 Add service on the needed page.
5 Click "Success" event handler and make link from needed response parameter to label on the page.