public/js/form.js
//calls to receive all breed names
calls to receive all breed names
calls to receive all breed names
function appendBreedList() {
  console.log("appending breed list to form");
  try {
    $.ajax({
      type: 'GET',
      dataType: 'jsonp',
      url:"https://api.petfinder.com/breed.list",
      crossDomain: true,
      data: {
        'animal':'dog',
        'format':'json',
        'key' : '08fc6364a46811e277f4e63ebde75eca'
      },
      jsonpCallback: "display",
      success: function() {},
      error: function() { alert('Failed!'); },
    });
    return false;
  } 
  catch (e) {console.log(e.description);}
}
function appendBreedList ( ) { console . log ( "appending breed list to form" ) ; try { $ . ajax ( { type : 'GET' , dataType : 'jsonp' , url : "https://api.petfinder.com/breed.list" , crossDomain : true , data : { 'animal' : 'dog' , 'format' : 'json' , 'key' : '08fc6364a46811e277f4e63ebde75eca' } , jsonpCallback : "display" , success : function ( ) { } , error : function ( ) { alert ( 'Failed!' ) ; } , } ) ; return false ; } catch ( e ) { console . log ( e . description ) ; } }
calls to receive all breed names
calls to receive all breed names
//this is the petfinder api //documentation is at https://www.petfinder.com/developers/api-docs