Hello,
There is a div
<div id='about_id' style='display: none' class='abc'>the ABCc</div>;
and a button that is linked to a
var myAjax = new Ajax.Request(url,
{ method: 'post',
parameters: pars,
onSuccess: function(transport)
{
new Effect.Fade('about_id');
$('about_id').update(transport.responseText);
new Effect.Appear('about_id');
}
}
);
I was expected to see, upon clicking the button, the ABCs to fade away, then
the substitution to be done while the screen is blank and the new text toappear
progressively.
Instead, the ABC is brutaly replaced by the new text, which disappears leaving
me with a blank page; not exactly what was expecting!
Firefox and IE have the same behavior; what am I doing wrong?
Thank you
____________________________________________________________________________________
Choose the right car based on your needs. Check out Yahoo! Autos new Car
Finder tool.
http://autos.yahoo.com/carfinder/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---