Try this:

$.post("handler.php", { data: "comments=" + comment_value + "&id=" + userid,
success: comment_success(userid) }, function(data){ alert("Data Loaded: " +
data); } )

I hope this is what you're looking for.

As you can see, the callback comes after the params.


Junior wrote:
> 
> I have successfully sent data to the server via AJAX using:
> 
> $.ajax({ type: "POST", url: "handler.php", data: "comments=" +
> comment_value + "&id=" + userid, success: comment_success(userid) });
> 
> So I am able to update my db. However, once the db has been updated, how
> do I refresh the data on the page (w/o a page refresh) using AJAX? Any
> feedback will be appreciated.
> 

-- 
View this message in context: 
http://www.nabble.com/AJAX-Newbie-Question-tf2319723.html#a6484622
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to