Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
151 Points
171 Posts
Apr 24, 2012 01:44 PM|LINK
At the moment my web service returns a simple object to a JQuery AJAX call, and I parse the result using:
function OnSuccess(response) { if (response != null && response.d != null) { var data = response.d;
if (data.Link.length > 0) {
$("#lnkExternal").attr("href", data.Link); document.getElementById("btExternal").style.display = "block"; $("#btExternal").css('cursor', 'pointer'); } } }
I want to return a generic list of the same simple objects, how could I parse those in a loop? Any help most appreciated.
InternetReta...
Member
151 Points
171 Posts
Parse Returned Generic List of Objects in JQUERY
Apr 24, 2012 01:44 PM|LINK
At the moment my web service returns a simple object to a JQuery AJAX call, and I parse the result using:
function OnSuccess(response) {
if (response != null && response.d != null) {
var data = response.d;
if (data.Link.length > 0) {
$("#lnkExternal").attr("href", data.Link);
document.getElementById("btExternal").style.display = "block";
$("#btExternal").css('cursor', 'pointer');
}
}
}
I want to return a generic list of the same simple objects, how could I parse those in a loop?
Any help most appreciated.