pomocou kodu
$('form.comment_form').livequery('submit', function a()
{
var element = $(this);
var wall_post_id = element.attr("id");
var wall_message = $('#comment_text'+wall_post_id).attr('value');
$.post("home/add_comment", $(this).serialize(), function(response)
{
if(response.error == "0")
{
$("div#comments"+wall_post_id).replaceWith(response.message);
}
else if(response.error == "1")
{
alert(response.message);
return false;
}
}, "json");
return false;
});
pridavam k prispevkom komentare.. problem je vsak ten, ze po prvom pridani komentaru dalsie pridat nemozem
viete mi niekto pomoct?