i am working with javascript jquery. I m sending request to the url for getting json response and i want that json response should be displayed in another html page with some good format may be in table or smoother format.then how can i do that.and also i want to update data in my html page depending upon the json response dynamically.so how can i do that.and am working with phonegap then which technology should i use for server side ?
$.ajax({
type: "GET",
url: "url",
data: null,
contentType: "application/json; charset=utf-8",
success: function(data) {
alert("success");
}
}, error: function(jqXHR, exception) {
if (jqXHR.status === 0) {
alert('Not connect.\n Verify Network.');
} else if (exception === 'timeout') {
alert('Time out error.');
} else if (exception === 'abort') {
alert('Ajax request aborted.');
} else {
alert('Uncaught Error.\n' + jqXHR.responseText);
}
}
});