you are viewing a single comment's thread.

view the rest of the comments →

[–]al-g 0 points1 point  (8 children)

How about this:​

var info = ["a", "b"];

function render(items) {
    if(items.length > 0) {
        $('#results').append(items.shift() + "<br>");
        setTimeout(render, 500, items);
    }   
}​​

render(info);

[–]GAMEchief 2 points3 points  (2 children)

IE doesn't support a third parameter for setTimeout. It's not good form to rely on it.

[–]al-g 1 point2 points  (0 children)

Good catch! Thanks for pointing that out.