$(document).ready(function () { $.ajax({ type: "GET", url: "http://www.customer-supports.com/WcfService2/Service1.svc/Getjson", dataType: "json", success: function (xml) { alert('have a nice day'); //$(xml).find('Product').each(function () { // var id = $(this).find('COUNTRY_CODE').text(); // var name = $(this).find('COUNTRY_NAME').text(); // var price = $(this).find('IP').text(); // $('<tr><td>' + id + '</td><td>' + // name + '</td><td>' + price + '</td><td>').appendTo('#products'); //}); }, error: function (xhr) { alert(xhr); } }); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)