I have this loop but it only goes once
$.each(data, function(entryIndex,entry)
{
str = entry.images.timage;
film += '<li><img src="'+ startURL + str.replace(/myconnect/ , "connect") + '" alt="/></li>';
})
This is my JSON
[
{
"images": {
"filetype": "Video",
"vidlink": "http://www.mediacollege.com/video-gallery/testclips/barsandtone.flv",
"limage": "",
"timage": "/Tumb.jpg?MOD=AJPERES",
"body": "<span style='font-weight: bold;'>This is test two</span><br><br><a href='http://google.com/' >This is a link</a><br>",
"abstract": "This is a test for the video",
"title": ""
},
"images": {
"filetype": "Video",
"vidlink": "http://www.mediacollege.com/video-gallery/testclips/barsandtone.flv",
"limage": "",
"timage": "Tumb.jpg?MOD=AJPERES",
"body": "<p style='margin: 0px;'>will this work in the json <br></p><p style='margin: 0px;'>file<br></p>",
"abstract": "This is a test for the video",
"title": ""
}
}
]
Sorry for the dupe post, I was not logged in the last time I posted so if the mod could delete the one before this titled
.each not working. thanks.
I should also note that I pull the JSON over with a get
$.get(JsonPath, function(data, textStatus)
then I use
data = JSON.parse(mydata);
to make it an object