Can't manage calling custom callback function with ajax response.
$.post("mails", { "type": p }, myfunc(data));

where myfunc() supposed to alert .resposeText
however, $.post("mails", { "type": p }, function(data){ myfunc(data) } );
is not what i'm looking for.

Thanks in advance. =)