-
-
Save meltingice/322206 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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