Skip to content

Instantly share code, notes, and snippets.

Created March 4, 2010 22:37
Show Gist options
  • Save anonymous/322204 to your computer and use it in GitHub Desktop.
Save anonymous/322204 to your computer and use it in GitHub Desktop.
var artifact;
$.ajax({
type: "GET",
url: file,
dataType: "xml",
async: false,
success: function(xml) {
var objectLabel = $(xml).find('label').text();
var photo1 = $(xml).find('photo1').text();
var photo2 = $(xml).find('photo2').text();
var blurbs = new array();
var blurbCount = 0;
$(xml).find('blurb').each(function() {
blurbs[blurbCount] = $(this).text()
blurbCount++
})
artifact = new Marker(photo1, photo2, objectLabel, blurbs);
alert("artifact: " + artifact.objectLabel)
}
})
return artifact;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment