S
S
SHAKIRA2014-04-16 19:33:38
JavaScript
SHAKIRA, 2014-04-16 19:33:38

What is the error in this Ajax request on JQuery by the following json parsing from the contact?

Hello! Please help with the following code

$(document).ready(function(){
$.ajax({
type: "GET",
url: " api.vk.com/method/photos.get?owner_id=8462778&albu... ",
dataType: "json" ,
success: function(jsondata){
5 alert('src_small = ' + jsondata.src_small );
6 }
});


The purpose of this code is to get via api a list with image links from src_small values.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri Morozov, 2014-04-16
@metamorph

Well, for starters, this is the place.
5 alert('src_small = ' + jsondata.src_small ); 6

S
Sergey Melnikov, 2014-04-16
@mlnkv

$(function(){
  $.get(
    "api.vk.com/method/photos.get?owner_id=8462778&albu...",
    function(jsondata){ 
      alert('src_small = ' + jsondata.src_small );
    },
    "json"
  )
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question