Link to home
Create AccountLog in
Avatar of Steve Tinsley
Steve TinsleyFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Slide down and fade in new results

I have an ajax script which checks for new ebtries in the database evey 10 seconds. When there is a new entry the new result is prepend to the div.

I want to make this look better and slide and and fade in the new results.

Could someone help with a simple bit of code??

	// generate HTML data.
	htmlData = "<div class='post' id='" + rowData.questionResponseID  + "' style='display:;'>";

	htmlData += "<div class='postContent1'>" + rowData.questionResponse + "</div>";
		
	htmlData += "</div>";
		 
	$(".row:first").prepend($(htmlData).fadeIn('slow'));

Open in new window


    	    <div class='row'></div>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Hans Langer
Hans Langer

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account