im using ajax to get data from a site, then i iterate this data into an array with a for loop.
as a sub event to the loop i call a function that populates a listbox from the data in array.
this works, but the function runs all the time.populating the listbox with thousands of duplicates.
how do i ensure the function is only called when my for loop is finished?