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

JavaScript AJAX Basics (retiring) AJAX and APIs Displaying the Photos

Everything is working except the photo links

My code is working fine, but when I tried to click on the photo nothing loaded. I checked the source code of the displayed page and this is coming up like this:

<a href"https:="" www.flickr.com="" photos="" avlxyz="" 21295396930="" "="" class="image"><img src="https://farm1.staticflickr.com/644/21295396930_07e599f9e1_m.jpg"></a>
huckleberry
huckleberry
14,636 Points

Hey man,

I fixed the code tags in your example so that it renders properly but you've got a bunch of formatting errors in there with your quotes.

for example you have

<a href"https:="" >

and it should be

<a href="https://www.flickr.com/etc..etc...>

Can you recheck your code, fix it up and include your JS as well?

Thanks.

Cheers,

Huck - :sunglasses:

1 Answer

That was my problem, Huck. It was outputting bad code. I didn't type the bad code.

huckleberry
huckleberry
14,636 Points

Ohhhh ... well that's weird. I ... I have no idea why it would do such a thing lol.

Cheers,

Huck - :sunglasses:

No problem. I forget what I did two months ago, but I believe I solved it. Thanks for trying to help though, I appreciate the thought!

huckleberry
huckleberry
14,636 Points

No problem, brother.

Cheers,

Huck - :sunglasses: