2fas2c
Posts: 0
Joined: Mon Dec 16, 2013 11:43 pm

How do I know if a select box has completed loading?

Also, on the select control, will it automatically select the right item if i map my _id value to the value field on selectAthleteName-0 in the picture above?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

How do I know if a select box has completed loading?

Hello.

It's very important to understand service events order.

So this order is:

1 success
2 complete

To fix this problem you should use one type of event where you can populate select and execute the service.

Example:

pre
code
loadAthleteService.execute( {
success:function(data) {
//data is JSON response object

Code: Select all

     //Add code which populate your select by data object. 

     loadScoreService.execute();  
 }  

}
/code
/pre

Return to “Issues”