Widget:Sandbox2: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
(42 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
var queryString = ''; | var queryString = ''; | ||
$.ajax({ | $.ajax({ | ||
url : 'http://www.wikidoc.org/api.php?action=load&main=[%22Anatomy%22,%22Genetics%22,%22Biochemistry%22]&sub=[%22Cardiology%22,%22Dermatology%22,%22Endocrine%22]&exam=USMLE_Step_1&num=10&format=json' | url : 'http://www.wikidoc.org/api.php?action=load&main=[%22Anatomy%22,%22Genetics%22,%22Biochemistry%22]&sub=[%22Cardiology%22,%22Dermatology%22,%22Endocrine%22]&exam=USMLE_Step_1&num=10&format=json', | ||
async : false | |||
}).done(function (data) { | }).done(function (data) { | ||
$(data | $.each(data.questions.list, function(key, element){ | ||
console.log(key); | |||
}); | }); | ||
}).error(function(error){ | }).error(function(error){ |