[jQuery] getJSon loop through variable
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000066">
Following getJSON works fine but I need to replace "presentations with
a variable "getSlides" tried a lot of different ways with a variety of
errors no matter what I've treid
var getSlides = $(this).attr("href");
$.getJSON("photoList.js", function(slides){
$.each(slides.<font color="#cc0000">presentations,</font>
function(i,item){
$("<img/>").attr("src",
item.photo).appendTo("#slideshow");
});
///do something
});
</body>
</html>