Skip to content

Instantly share code, notes, and snippets.

@sanasol
Created May 4, 2012 14:23
Show Gist options
  • Save sanasol/2595089 to your computer and use it in GitHub Desktop.
Save sanasol/2595089 to your computer and use it in GitHub Desktop.
type = data.list[i].type;
question = data.list[i].question;
VK.api("users.get", {uids: my_id, fields: 'first_name', name_case: data.list[i].name_case}, function(d) {
name_quest = d.response[0].first_name;
$("#answers").append('\
<div id="'+type+'">\
<span id="answers_user">'+photo+' '+name+'</span>\
'+answer+'\
<p id="answers_quest">'+question.replace("{name}", '<span style="font-weight: bold;">' + name_quest + "</span>")+'</p>\
</div>');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment