var request = new Request({
method: 'get',
url: 'onlinestatusoutput.html.php',
onComplete:function(response)
{
$('ajax-content').get('tween', {property: 'opacity', duration: 'long'}).start(0).set('html', response).set('html', response).tween('height', [0, 650]);
}
}).send();
Before I load the desired content into the div, I have text that says "Loading Content...".
What I'd like to do is fade out the text that says "Loading Content...", and then fade in the content loaded in from the AJAX Request.
How exactly would I accomplish this?
I tried using the fade('in') and fade('out') methods, but that didn't work. I also tried another call to the get() method and set the opacity to 1 via start(1), but that didn't work either.