bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

How to check if components are initialized ?

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

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

How to check if components are initialized ?

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How to check if components are initialized ?

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/...

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

How to check if components are initialized ?

Sweet !

That works nicely.

Thank you so much.

Return to “Issues”