Okay, I get it. BTW, just to hand something back in return:
$('some-element').blindUp({duration:0.5);
// wait for the blind up to complete before replacing the content
Element.update.delay(0.5, 'some-element', '<p>my new content</p>');
// wait for the blind up to complete, then wait a 10th of a second
longer
Element.blindDown.delay(0.6, 'some-element', {duration:0.5});
could become...
$('some-element').blindUp({
duration:0.5,
afterFinish: function(obj){
obj.element.update('<p>My new content</p>').blindDown({
duration:0.5
});
}
});
Walter
On Oct 21, 2008, at 3:43 PM, Justin Perkins wrote:
>
> Well since the Ajax requests in Prototype will auto-eval the response,
> you can modify the page without updating just one div. It's the route
> I take most of the time.
>
> Say you set it up like this:
>
> new Ajax.PeriodicalUpdater('', '/some/url');
>
> Then the response from /some/url could be:
>
> $('some-element').blindUp({duration:0.5);
> // wait for the blind up to complete before replacing the content
> Element.update.delay(0.5, 'some-element', '<p>my new content</p>');
> // wait for the blind up to complete, then wait a 10th of a second
> longer
> Element.blindDown.delay(0.6, 'some-element', {duration:0.5});
>
> You get the idea. I find it more flexible and convenient than updating
> just a single element. You could alternatively call into some
> predefined object/method to do this work.
>
> Some people might be opposed to this approach, but it works.
>
> -justin
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---