Created
November 12, 2013 14:07
-
-
Save hitautodestruct/7431368 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="An example of using the open weather map api."> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
url:'http://api.openweathermap.org/data/2.5/weather?q=Binyamina&units=metric', success: function (data) { | |
$(document.body).html(JSON.stringify(data)); | |
}, | |
dataType: 'jsonp' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment