Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta charset="utf-8" />
- <title>Øivind surr</title>
- <script src="http://code.jquery.com/jquery-latest.min.js"></script>
- <script>
- $(function () {
- var feedURL = "VGfeed.json";
- $.getJSON(feedURL, function (bøtte) {
- //var antArtister = $(this).find("artistName").size();
- //for (var i = 0; i < antArtister; i++) {
- // $("#secMain").append("<h1>" + bøtte.artist[i].artistName + "</h1>");
- //}
- $.each(bøtte.artist, function (i, n) {
- $("#secMain").append("<h1>" + n.artistName + "</h1>");
- });
- //var htmlTxt = "";
- //$(bøtte).find(bøtte).each(function () {
- // htmlTxt += "<h1>";
- // htmlTxt += artistName;
- // htmlTxt += "</h1>";
- //});
- });
- });
- </script>
- </head>
- <body>
- <section id="secMain">
- </section>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement