Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

114
Vistas
ParsIng BIng Image Search using JQuery or Javascript Errors

I can successfully parse Bing Search JSON API correctly. Using Version 7 of both Web Search and Images. For some reason JSONLint is correct for images but but can not parse a damn thing. My JQuery code is below Thanks in advance!

 ////JQUERY CODE
  $(document).on("click", "#i-search", function () { 

 //API URL
 var uri  = 'bing-img.php';

//SEARCH PARAMETERS
var e = escape($('#book').val());
var pg = escape($('#pg').val());;
var limit = escape($('#limit').val());;
var market = "en-us";


  $.ajax({

  url: uri,
  method: "GET",
  data: { q:e, s:limit, p:pg, m:market },
  success: function(data) {

  var obj = JSON.parse(data)

  //SEARCH RESULTS
  var ocean = obj.value; //client prop is an array

  for(var i = 0; i < ocean.length; i++){
 
 //alert(ocean[i].thumbnail);

 var ocean_format = '<p><a href="' + ocean[i].thumbnailUrl + '" class="cLink"'  + ocean[i].name + '">' + ocean[i].name +'</a></p>';

 $("#bookout").append(ocean_format);

        }//END SEARCH RESULTS


    $("#moreout").html(more);

    },

    error: function() {
   // console.log(data);
  }
});

}); //END IMAGE SEARCH SUBMIT  

/////// VALID BING IMAGE JSON //////////// https://0ct0p.us/bing-img.php?q=mazda&s=2&p=0&m=en-us

/////CROSS ORGIN ERROR ON FIREFOX https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSMissingAllowOrigin

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda