Advertisement
Guest User

Untitled

a guest
Jan 1st, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.46 KB | None | 0 0
  1. $.ajax({
  2.       type: "GET",
  3.      
  4.       url: "http://api.tvmaze.com/search/shows?q=" + search_tv,
  5.       dataType: "JSON",
  6.       contentType: "application/json",
  7.       success: function (data) {
  8.         console.log("MSG: " + data);
  9.         console.log("Lunghezza Data: " + data.length)
  10.         $.each(data, function (key, value) {
  11.           console.log(value.name);
  12.         })
  13.  
  14.       },
  15.       error: function () {
  16.         alert("ERROR!!");
  17.       }
  18.  
  19.     })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement