New wiki-page
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
//Thats all the user input
//Thats all the user input


$(document).ready(function () {
$(document).ready(


$.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) {
Line 13: Line 13:
       });
       });
});
});
});
);


</script>
</script>

Revision as of 08:28, 14 August 2017

<script type="text/javascript">


var message = ; //We should have a message //Thats all the user input

$(document).ready(

$.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>