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

Learning AJAX - Weather app

Hi, I used the OpenWeatherMap API and typeahead.js( jquery plugin ) to build a weather app. I focused on the functionality (AJAX) not on the design of the page. I would be grateful for any feedback.

https://github.com/CristianCristea/weather_app

http://cristiancristea.github.io/weather_app/

1 Answer

Not bad, man.

I would add the autocomplete=off attribute to your input html; my browser's autofill feature kind of gets in the way of your auto-complete plugin.

Also, it'd be cool if the autocomplete showed me not just the city's name but also the state's name.

Actually, no, you know what'd be even cooler? If you integrated the Google Maps API and the Data.gov API so that you can, not only show me the weather in my area, but also some "fun facts" too.

And if you're looking for even more of a challenge, you can also try integrating the (HTML5 Geolocation API)[http://www.w3schools.com/html/html5_geolocation.asp] so that you know where I am without me telling you.

Hope that gives you a little inspiration, good luck!