I've got a menu with several buttons. If I click on one of the buttons as the site is loading, I get object not initialized errors. If I call the menuClickHandler function in the Application creationComplete, then the menu works only once.
What's the best way to make the menu work only, after the objects it needs are ready? Do I have to check if (myObject!=null) for every object? Should I use a timer to delay calling the function? What is the standard way to code the menu so that it functions properly?
Make the menu initially disabled, and then wherever in your code you know everything the menu needs is ready, enable the menu.
If this post answered your question or helped, please mark it as such.
Thank you, Greg. I love simple answers.