jquery - Pushing a variable outside of a function -
i have jquery code block twitter widget i'm developing , $.getjson("http://twitter.com/users/show.json?screen_name=" + twitterfeed + "&callback=?" , function(data) { var fstring = ($('<div id="userimage"><h1>'+ data.followers_count +'</h1></div>').digits()).text(); var tstring = ($('<div id="userimage"><h1>'+ data.statuses_count +'</h1></div>').digits()).text(); $('#left-sidebar').prepend('<div id="userimage"><h1>'+ tstring +'</h1></div>'); $('#left-sidebar').prepend('<div id="userimage"><h2>tweets</h2></div>'); $('#left-sidebar').prepend('<div id="userimage"><h1>'+ fstring +'</h1></div>'); $('#left-sidebar').prepend('...