G
G
GladFromAdenGate2016-02-21 17:57:15
PHP
GladFromAdenGate, 2016-02-21 17:57:15

How to specify a variable in a link?

All the best! Please tell me how to make a link to the id variable instead of numbers in "users_ids="?

var id=1234567;
     function get (){

var call= $.getJSON('https://api.vk.com/method/users.get?user_ids=1234567&callback=?', function(resp){

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey A, 2016-02-21
@GladFromAdenGate

var call= $.getJSON('https://api.vk.com/method/users.get?user_ids=' + id + '&callback=?', function(resp){

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question