Page 2 of 2

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

Posted: Sun Mar 23, 2014 2:21 pm
by 2fas2c

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?


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

Posted: Mon Mar 24, 2014 1:03 am
by Igor

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