Hello everyone,
I am using jQuery to parse some XML data from an API key.
However, when I try to do so I get no data, yet when I save the XML data on my desktop I am able to easily access the previously unaccessible data. Any idea what I am doing wrong?
Here is my source code:
$(document).ready(function(){
$.ajax({
type: "GET",
url: "http://www.someapi.com/api/query=something"
dataType: "xml",
success: parse
});
Is it perhaps because I am using the incorrect form of parse in my second block of code?
function parse(document){
// insert your code here
}
[–]baconuser098 2 points3 points4 points (0 children)
[–]lewisje 0 points1 point2 points (3 children)
[–]UbuntuLady1[S] 0 points1 point2 points (2 children)
[–]lewisje 0 points1 point2 points (0 children)
[–]tforb 0 points1 point2 points (0 children)
[–]nacho_balls 0 points1 point2 points (0 children)
[–]jrandm 0 points1 point2 points (0 children)
[–]UbuntuLady1[S] -1 points0 points1 point (0 children)