I am stuck with using Dojo to accomplish this. Basically what I am trying to implement is an AJAX feature where a user adds a comment to a blog post and it is immediately displayed.
So I'm to the point where I have the dojo.xhrPost
receiving a chunk of html that needs to be added to the list of comments. Now I want to slowly fade in the new comment so the effect isn't so jarring.
Here's what I've got so far:
function displayNewComment(commentHtml)
{
//place new comment html at the end of the list
dojo.place(commentHtml, dojo.byId('Comments'), "last");
//is there any way to fade this in?
}