Code not working?

Thanks for your reply! I’m a little confused by your code though.

I’ve seen many other campers users a getjson call inside of another getjson call and it works fine. For example, a fellow campera Hasan Sönmez has a great weather app that does just that.

How come when I do the same it doesn’t work?? Also, I’m confused as to where you define the latitude and longitude variables. I use lat and long variables but define them inside the first getjson, so wouldn’t the getWeather ajax call not be able to access them because of the variable scope chain?

Thanks again for your reply and helping me with this!