Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var h_friends = new Array();
- function getFriends(i) {
- new Ajax.Request('/habblet/ajax/allfriends', {
- onComplete: function(x) {
- h_friends[i] = (x.responseText.match(/friendId=(.*?)">/gi)[i]).split('=')[1].split('"')[0];
- console.log(h_friends[i]);
- }
- });
- };
- for (i=0;i<=7;i++)
- {
- getFriends(i);
- };
Advertisement
Add Comment
Please, Sign In to add comment