Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HTML:
- <div id="article"></div>
- JS:
- $(document).ready(function(){
- $.ajax({
- type: "GET",
- url: "http://id.wikipedia.org/w/api.php?action=parse&format=json&prop=text&page=Pembrita_Betawi&callback=?",
- contentType: "application/json; charset=utf-8",
- async: false,
- dataType: "json",
- success: function (data, textStatus, jqXHR) {
- var markup = data.parse.text["*"];
- var blurb = $('<div></div>').html(markup);
- $('#article').html($(blurb).find('p'));
- },
- error: function (errorMessage) {
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement