Created
March 27, 2010 21:28
-
-
Save AutomatedTester/346362 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
Please share this as much as you want and add to it even! |
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
<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