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 |
||
(66 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<script type="text/javascript" | <script type="text/javascript"> | ||
$(document).ready(function(){ | |||
function | var queryString = ''; | ||
var | $.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', | ||
{ | async : false | ||
$.each(data. | }).done(function (data) { | ||
{ | $.each(data.questions.list, function(key, element){ | ||
console.log(key); | |||
}); | |||
}).error(function(error){ | |||
console.log(error); | |||
}); | |||
}); | |||
</script> | |||
</includeonly> | </includeonly> |