feelfree82

Untitled

Apr 1st, 2012
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <script type="text/javascript">
  2. jQuery(document).ready(function($) {
  3. $.ajax({
  4. url: "http://api.wunderground.com/api/65217d5ad3c1a1a8/forecast/q/53.36652,-2.29855.json",
  5. dataType: "jsonp",
  6. success: function(parsed_json) {
  7. var conditions = parsed_json['conditions'];
  8. var date = parsed_json['date'];
  9. alert("Current temperature in "+conditions+" is: " + date);
  10. }
  11. });
  12. });
  13. </script>
Advertisement
Add Comment
Please, Sign In to add comment