Page 1 of 1

How to check if components are initialized ?

Posted: Mon Oct 14, 2013 12:51 am
by bahar.wadia

I get am getting errors indicating that a component is not initialized. How can I check if a component has been initialized ?

For example, I have a google maps component that I initialized to the current location every time the Page Show event fires. However, more often than not I get an error that indicates that google maps has not completed initializing. I am assuming this can happen to other components.

How to I check for this so that the app can wait before proceeding ?

Thanks


How to check if components are initialized ?

Posted: Mon Oct 14, 2013 1:18 am
by Igor

How to check if components are initialized ?

Posted: Mon Oct 14, 2013 1:34 am
by bahar.wadia

I read through info in the link, but I am not sure if I understand. If you were to implement this how would you do it in Appery ?

Thank you for your help.


How to check if components are initialized ?

Posted: Mon Oct 14, 2013 8:56 am
by Kateryna Grynko

Hi Bahar,

Add code as custom JS and call function on pageShow event, for example. Also take a look at here, please: https://getsatisfaction.com/apperyio/...


How to check if components are initialized ?

Posted: Sun Oct 20, 2013 9:15 pm
by bahar.wadia

Sweet !

That works nicely.

Thank you so much.