New wiki-page
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
$.getJSON("http://w.ikabodo.se/api.php?action=browsebysubject&subject=Cymric_Male_Names&format=json", function(data) { | $.getJSON("http://w.ikabodo.se/api.php?action=browsebysubject&subject=Cymric_Male_Names&format=json", function(data) { | ||
$(data.query.data).each(function(key, data){ | $(data.query.data).each(function(key, data){ | ||
var text=data.dataitem[0].item.split('_').join(' '); // get rid of _ | var text=data.dataitem[0].item.split('_').join(' '); // get rid of _ | ||
document.write(text + 'test <br>'); | document.write(text + 'test <br>'); | ||
}); | }); | ||
}); | }); | ||
</script> | </script> |
Revision as of 08:27, 14 August 2017
<script type="text/javascript">
var message = ; //We should have a message
//Thats all the user input
$.getJSON("http://w.ikabodo.se/api.php?action=browsebysubject&subject=Cymric_Male_Names&format=json", function(data) {
$(data.query.data).each(function(key, data){ var text=data.dataitem[0].item.split('_').join(' '); // get rid of _ document.write(text + 'test
'); });
});
</script>