> Hi. I don't think that will work.
>
> The category list that creates the UL is a PHP which 
> statementhttp://www.pastie.org/369269
>
> It would have to rerun that PHP script everytime the .post() is ran
> from the initial javascript.


I think Jay is making the reasonable assumption that the response from
addCategory.php is the markup for the new list items. If so, then you
what he suggested:

$('#myList').html(data);

If the response is something else, or nothing at all, then you need to
fetch it with a GET.  How you implement it on the server is up to you,
but the jQuery code could be as simple as this:

$('#myList').load('lib/getCategory.php?category=' + catName);

Reply via email to