Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Dan Williams
5,339 PointsJavascript not returning images correctly for display in html DIV
Can any one help me with this project?
The following code should do the following. Cycles through the database and captures the "Global_Name_Badge" which is an image url and the "objectId" which is the entries ID.
Once that information is stored I wanted to be able to select a relevent image (By its ID and display it within a div.
The reason I want to place images into divs is that they appear in different sections of the web page.
I think the below code is close, but its not returning any images to the test page currently. Is anyone able to help me trap the error?
I'm not seeing any errors in the console log.
JFiddle is here http://jsfiddle.net/a38hV/2/