Possible Duplicate:
Return value from ajax call?
JavaScript asynchronous return value / assignment with jQuery
I have a problem whereby I am trying to iterate over an array in JavaScript, but for some reason it is failing to do so. I am building the array in a $.get() callback from last.fm's API and creating an array of objects. When I then try to iterate over the array afterwards, it doesn't work and the length is zero.
I've posted a JSFiddle here:
Any thoughts? I'm going a bit mad here!
Note: Pop up your JS console - I'm logging stuff to it...