Widget:Sandbox2: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) Created page with "<includeonly> <script type="text/javascript"> var div_data = " "; $.getJSON("http://www.wikidoc.org/api.php?action=query&meta=siteinfo&siprop=statistics&format=json",function(..." |
Matt Pijoan (talk | contribs) No edit summary |
||
(72 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
var | $(document).ready(function(){ | ||
$. | var queryString = ''; | ||
{ | $.ajax({ | ||
$.each(data. | 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) { | |||
} | $.each(data.questions.list, function(key, element){ | ||
console.log( | console.log(key); | ||
}); | |||
}).error(function(error){ | |||
console.log(error); | |||
}); | |||
}); | |||
</script> | |||
</includeonly> | </includeonly> |