questo funzionerebbe
quali sono le differenze?codice:$(document).ready(function() { $.ajax({ url: "http://api.flickr.com/services/feeds/photos_public.gne", dataType: "jsonp", data:{ format:"json", tags:"monkey", tagmode:"any"/*, jsoncallback:"processJSON" // se decommenti questo esegui processJSON come callback */ }, jsonp: "jsoncallback" , success: function(json) { alert('success, check your console') console.log(json) }, error: function(request, error, tipo_errore) { alert(error+': '+ tipo_errore); } }); }); function processJSON (json) { console.log(json) };
l' ulr che mette insieme e' praticamente
http://api.flickr.com/services/feeds...ny&format=json
se facessi anche solo cosi' andrebbe a buon fine
la differenza e' che questo server e' impostato per restituire il json se viene passato un jsoncallbackcodice:var script_element = document.createElement('script'); script_element.src = 'http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=processJSON&tags=monkey&tagmode=any&format=json'; document.getElementsByTagName('head')[0].appendChild(script_element); function processJSON (json) { console.log(json) };
quello a cui punti tu non e' dato a noi saperlo
ciao

Rispondi quotando
sono 5 mesi che ci provo ma non ci riesco proprio 