Skip to content

@softprops /upcoming.html secret
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
<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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.