Skip to content

Instantly share code, notes, and snippets.

@shanesmith
Created August 30, 2012 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shanesmith/3532095 to your computer and use it in GitHub Desktop.
Save shanesmith/3532095 to your computer and use it in GitHub Desktop.
Data example
Data.sessions.getAll(
function(xml) {
$(xml).find("session").each(function(id, session) {
var title = $(session).find('title').text();
myView.addToList(title);
};
},
function(errorText) {
alert("There was an error: " + errorText);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment