feelfree82

Untitled

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