Welcome Guest, Not a member yet? Register   Sign In
Jquery, ajax and json_encode
#2

[eluser]vitoco[/eluser]
I think this may work
Code:
$.each(data, function() {
   $tr.append('<tr><td>' + this.name + '</td><td>' + this.email + '</td></tr>');
});

data is the result json object, this is the iteration object with the attrs.

Saludos


Messages In This Thread
Jquery, ajax and json_encode - by El Forum - 04-26-2012, 06:01 AM
Jquery, ajax and json_encode - by El Forum - 04-26-2012, 01:12 PM
Jquery, ajax and json_encode - by El Forum - 04-26-2012, 01:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB