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
 
(64 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/
<script type="text/javascript">
libs/jquery/1.3.0/jquery.min.js">
$(document).ready(function(){
function test(){
var queryString = '';
$.getJSON("http://www.wikidoc.org/api.php?action=query&meta=siteinfo&siprop=statistics&format=json",function(data)
$.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',
console.log(data.views);
async : false
}
}).done(function (data) {
                $.each(data.questions.list, function(key, element){
                          console.log(key);
                });
}).error(function(error){
console.log(error);
});
});
</script>


</script>
<form> 
<input type="button" onclick="test()" value="Push me!" /> </form>


</includeonly>
</includeonly>

Latest revision as of 17:33, 3 February 2014