Closed

jQuery parse json display results on page

This project was awarded to randdythea for $30 USD.

Get free quotes for a project like this
Employer working
Awarded to:
Project Budget
$30-$250 USD
Total Bids
2
Project Description

I have some json I need parsed and then displayed on a html page. The project should only use HTML and JS / jQuery to display the data.

I have attached the two json files I need parsed and the contents displayed inside of a div.

I need this done using $.getJSON... I need the data to load on page load and I need examples of it with and without Ajax.

I also need example of it loading on button click.

Your code should look something like this when finished... cept it should actually work.

Most important keep this drop dead simple...

script src="[url removed, login to view]" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$.getJSON("http://localhost:2286/[url removed, login to view]", function (data) {
$.each([url removed, login to view], function (i, result) {
var quote = [url removed, login to view];
html = "<li><b>" + quote + "</b></li>";
html += "<hr/>";
$('#resultarea').append($(html));

});
});
});

</script>

<div id="resultarea">
</div>

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online