How do I know if a select box has completed loading?
I have a form with a selectbox (athlete name) and a text box (score). On the edit score page, i have two services:
loadAthleteService - which loads the list of all athletes
loadScoreService - which loads a score for a particular athlete.
On Form load: (invoke javascript) -
loadAthleteService.execute( {
success:function(e) {
loadScoreService.execute();
}
}
I get an error: "Error: cannot call methods on selectmenu prior to initialization; attempted to call method 'refresh'"
I know what the error means but why is trying to execute loadscoreservice even before the athlete select box is populated in spite of it being in the success event.
Thanks