JQuery load content and the slide at the same time -


below js

$('#maindiv').load('revolutionarycommunity.html', function() {        alert('load performed.');        $('#maindiv').slidedown('slow'); }); 

here trying load html page , sliding it. maindiv have content when call function maindiv load revolutionarycommunity.html.

but here whole maindiv sliding down loaded html content. need loading , sliding @ same time, how can this?

if question right, following:

$("#maindiv").slidedown("slow", function () {     $(this).load('revolutionarycommunity.html', function() {        alert('load performed.');     }); }); 

Comments

Popular posts from this blog

java - Unable to make sub reports with Jasper -

delphi - How to resolve undeclared identifier problems -

Alternative for object pools in cocos2d-x v3.3 -