secret
Created

  • Download Gist
upcoming.html
HTML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
<html>
<body>
<h2>Upcoming Meetups</h2>
<div id="event_listing">
<p><em>Loading...</em></p>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script>
$(function() {
var events = "http://api.meetup.com/2/events?group_urlname=NBBAlone&key=___&sign=true";
var target = $("#event_listing");
$.getJSON(events + "&callback=?", function(data) {
target.empty();
if (data.status && data.status.match(/^200/) == null) {
target.append("<p><em>Service Unavailable</em></p>");
} else {
for (i in data.results) {
ev = data.results[i ];
target
.append($("<h3>").append(ev.name))
.append($("<h4>").append(ev.time))
.append($("<div>").append(ev.description));
}
}
});
});
</script>
</body>
</html>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.