Closed nate8684 closed 12 years ago
Here is the code that worked for me, hope this helps others to follow
$(document).ready(function() {
$('img').retina();
});
$.ajax({
url: "http://www.lcbcchurch.com/mobileJSON/homeslideshow",
dataType: "json",
success:function(data){
results(data);
}
});
function results(data) {
for(var i = 0; i<data.length;i++){
// this will log all of the images url
console.log(data[i].slideshow_image); // just access the part you want by it's name.
$("#slider").append("<a href='"+data[i].slideshow_image+"'></a>");
}
picsReady();
}
</script>
Tried using your method here of pulling JSON data from your plugin on EE. In the console this is what always shows up:
GET http://www.lcbcchurch.com/mobileJSON/homeslideshow/results?_=1329339833378 404 (Not Found) f.ajaxTransport.sendjquery.js:4 f.extend.ajaxjquery.js:4 (anonymous function)
I think i'm following your directions accurately but things don't seem to be working. Any thought? Here is my ee code:
and my html/js:
Also, if you go directly to "http://www.lcbcchurch.com/mobileJSON/homeslideshow/results" I can see the output.