Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Getting values from Modules

$
0
0

Hi i have created a widget that has the UI and i have created the login module that does the authentication. Once the authentication is successful I am planning to return a boolean value to the widget.js file.

I see that that return value is sent first and then the onerror and onload are executed, so i am getting a 'undefined' value as the return value


var LoginModule = require('LoginModule'); var auth = new LoginModule(uname, pwd); var isLogin = auth.status();

Ti.App.Info(isLogin)

What is the correct place to place the return value and get the status once the login is successful?

or is there any other method that I can use before the onload/onerror please let me know.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>