Skip to content

Instantly share code, notes, and snippets.

@AutomatedTester
Created March 27, 2010 21:28
Show Gist options
  • Save AutomatedTester/346362 to your computer and use it in GitHub Desktop.
Save AutomatedTester/346362 to your computer and use it in GitHub Desktop.
Please share this as much as you want and add to it even!
<script type="text/javascript">
var statecode = "ZZ";
$.getJSON("http://query.yahooapis.com/v1/public/yql?q=SELECT%20*%20From%20xml%0D%0A%20Where%20url%3D'http%3A%2F%2Fwww.missingkidsmap.com%2Fread.php%3Fstate%3D" + statecode + "'%0D%0A&format=json&callback=?",
function(data){
leng = data.query.results.locations.location.length;
items = data.query.results.locations.location;
for(i=0;i<leng;i++){
$(".missingkid").append("<" + items[i].medpic + "> <br /> age: "+ items[i].age + " name: "+ items[i].firstname + " " + items[i].lastname + " missing: " + items[i].missing + "<br />Police Department: " + items[i].policeadd + " Police Number:" + items[i].policenum + "<br/>");
}
});
</script>
<div id="missingkids">
<div class="missingkid">
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment