K
K
Kusmich2015-11-13 12:13:44
JavaScript
Kusmich, 2015-11-13 12:13:44

How to pull out of the object at each url block?

I'm making a widget that displays tasks by time. There are three blocks in the markup for displaying tasks. Since all the tasks cannot be placed in three blocks, there is a change of tasks, after a certain period of time.

The data is taken from the object. The problem is to pull up the appropriate amount of url from the corresponding task. By the number of urls, collect and insert into the desired block. I insert one picture at a time, but I need all the pictures from the desired task.

The problem is that when looping through each block, get a set of urls that it contains. At me it turns out to pull out group url.

Here is my code to access the url :

var url;
$.each(json_date['dills'], function(key, val) {
  $.each(val['ParticipantsNAme'], function(i, n) {
    caunter++;
    console.log(caunter);
    url = n.url;
    console.log(url);
  });
});


all code : jsfiddle.net/v3qzb/11

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Zachinalov, 2015-11-13
@Kusmich

and in what form do you want to form? I threw it on the ball through a regular array jsfiddle.net/v3qzb/13

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question