search for: afterfinish

Displaying 20 results from an estimated 48 matches for "afterfinish".

2005 Oct 21
1
{ afterfinish }
Hi, 1. can someone give me an example usage of { afterfinish: }? I tried several ways and just can''t get it. I was trying to deploy an effect after another one had finished and just couldn''t do it. Effect.dropout (myElement, {afterfinish: function(element) { Effect.Appear(anotherElement); } } ); a) why doesn''t this work? b) what&...
2005 Nov 17
1
afterFinish option not working as expected
Hello, I''m trying to use the afterFinish parameter on the BlindDown effect, but it''s not working as I expect it to. My function appears to be called just as the effect is starting, not when the BlindDown is complete (finished drawing). Here''s the code that I''m using for the most part... Effect.BlindDown( mydiv...
2006 May 26
4
stopping effects, help me again please
Hi * and thanks for you responses some body help me stop effect, just last effect. Thanks! to somebody help me with: Pulsator = Class.create(); Pulsator.prototype = {initialize: function(element) { this.stopped = false; new Effect.Pulsate(element, { afterFinish: this.action.bind(this) }); },action: function(element){if(!this.stopped) new Effect.Pulsate(element, { afterFinish: this.action.bind(this) }); },stop: function(element) {this.stopped = true;} } but this solution doesn''t work to stop. thanks in advance rag
2006 Jan 17
0
:afterFinish not getting called?
I am attempting to remove an element in the :afterFinish callback of the "Squish" effect. This is what my call looks like. <%= link_to_remote ("X", :url => { :action => "deleteIt", :id => wc_line.attributes[''id''], :exercise_id => wc_line.at...
2005 Jul 19
1
Small patch to Effect.Highlight
I sometimes highlight a div that originally has no background colour. The current Effect.Highlight will leave my div with a white background, and it was not quite right for my purposes. My one-line-patch is simply to add the afterFinish option if there is no current background colour (insert at line 268 of effects.js rev:1756) if ( !current ) options.afterFinish = function(effect){ effect.element.style.backgroundColor = ''''; }; I don''t know if there needs to be a check for an existing afterFinish option...
2005 Jun 27
1
stage left and right effects
...and then -1000 left and finally renders the element hidden. The opposite holds for StageRight. Feel free to use it for whatever you like and any suggestions are welcome. Andrew Effect2.StageBase = function(element, amount) { new Effect2.MoveBy(element, 0, amount, { duration: 0.05, afterFinish: function(effect) { new Effect2.MoveBy(effect.element, 0, -(amount*2), { duration: 0.05, afterFinish: function(effect) { new Effect2.MoveBy(effect.element, 0, amount < 0 ? -1000 : 1000, { duration: 0.5, afterFinish: function(effect) { new Element.hide(element); }}) }}...
2005 Aug 25
0
[PATCH] do not use beforeStart, afterFinish, beforeUpdate, and afterUpdate internally in combination effects
Hello, my patch separates usage of the callback between the user, combination effects, and the core effects. Consider these use cases. a) user - core effects b) user - combination effects - core effects For a), the existing callbacks can be used by the user For b), the existing callbacks are partly used by the combination effects as a communication channel to the core effects, therefore they
2006 May 31
1
Problem with combining rails helper and javascript
Hi! I''d like to make ajax request after effect fade finishes. There''s a callback in Effect class - afterFinish, but it requires the code to be in function() {*here*}. When i write :afterFinish => remote_function() it generates following javascript code: afterFinish: new Ajax.Updater() and i need: afterFinish: function() {new Ajax.Updater()} How can i do it? I need to pass few values to the url and do...
2006 May 18
5
more that 5 time beats for effect.pulsate
hi again How can i extend 5 times for effect.pulsate beats? I need that continue beat until other event client happened about my other mail, is there other solution more elegant that this? : new Effect.Pulsate(leccion[i_leccion],{duration: 5,from: 1}); thanks again rag
2006 Jan 06
3
image replacement (new Effect.*****) problem
Here''s what I''m trying to do. I have two divs, one holds about 20 small images of products and the other holds a single large image of one of the products. I''m trying to use the jazzy "new Effect." way of changing images but I can''t seem to get it too work. My script is replacing the image and then making the element disappear. What
2005 Aug 08
0
Effects: User action in callbacks in addition to the defined one.
Hello, there is one problem with the afterFinish etc. callbacks. The predefined ones in effects,js do some clean-up like in BlindDown, so I do want them to run. But I also want to run some custom things afterFinish. There is no way to run the predefined action in addition to my code. IMHO, there should be systemAfterFinish for the default stuf...
2006 Feb 21
7
non simultaneous effects
Hi all, If I call this function bla: function bla() { Effect.Appear('some_element'); Effect.Appear('some_other_element'); } Both effect happen at the same time. Is there a way to stop this from happening? I mean, how can I delay the effect on 'some_other_element' from happening until the effect on 'some_element' is finished? thanks and regards, Jeroen
2006 Nov 27
7
3 prototype/scriptaculous effects in order on one <div>
What I am trying to do is fade out the content in a certain <div> load new content while its black then fade in the new content but im lost. I need it to go like this... Effect.Fade,Ajax.Update,Effect.Appear but everytime I try to do it it just trys to do all of them at once, how do I go about making the effects wait on the previous one before it starts?
2006 May 03
1
Start/Finish events with $$ function?
...39;.MyClass'').each(function(element, index) { /* Do something nifty */ }); and it takes a noticeable amount of time. I''m thinking that it would be beneficial to show a loading image while $$ is processing. So I was curious if the $$ function offered any event hooks (beforeStart, afterFinish, etc) like scriptaculous events do... Does anyone think that this would work? or would the browser be locked and not animate the gif? _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonra...
2006 May 29
0
[Fwd: stopping effects, help me again please]
Hi * and thanks for you responses some body help me stop effect, just last effect. Thanks! to somebody help me with: Pulsator = Class.create(); Pulsator.prototype = {initialize: function(element) { this.stopped = false; new Effect.Pulsate(element, { afterFinish: this.action.bind(this) }); },action: function(element){if(!this.stopped) new Effect.Pulsate(element, { afterFinish: this.action.bind(this) }); },stop: function(element) {this.stopped = true;} } but this solution work to stop but it lost duration feature thanks in advance rag ____...
2006 Mar 27
0
Effect problems
...position: ''end'' } } ); new Effect.Fade( ''logo'', { duration: 1.0, to: 0.2, queue: { scope: ''intro'', position: ''end'' }, afterFinish: function() { new Effect.MoveBy( ''bl1'', 0, 546, { duration: 1.0 } ); new Effect.MoveBy( ''bl2'', 0,...
2005 Sep 01
1
moveby with callback
I am using the effect moveby to move a div, I would like to be able to set the value of a variable when the effect is finished currently I have an options object that I am passing to the moveby effect - with no joy, it does not work I am sure that this is possible though I have not found it on the documentation code sample below: var menu = $(''treeWrapper'');
2005 Jun 24
1
Executing custom effect for n seconds
...opacity fade in/ out. I want to execute this effect with a custom duration. I''m looking for a consistent approach that is inline with script.alicio.us and Prototype. Is there a way to do something like this (pseudo code): Effect2.Pulse = function(element) { new FadeIn(element, {afterFinish: new Fadeout}) } Effect.Pulsate = function(element) { render(Effect2.Pulse, {duration: 10}); } I have most of this working, but the Pulse effect only runs 1, and when supplied with duration: n, it will take n seconds to render the Pulse effect once. What I would like to do is ''re...
2005 Oct 18
3
Blind... Effects
Hello, is there a way to basically achieve a BlindLeft and BlindRight effect and if yes, how would I do that? Thank you in advance for your help. _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
2006 Apr 03
5
RJS Queue
Hi, I''ve been able to succesfully queue page.visual_effect commands in my RJS templates. Each command will wait to execute until the previous command is done executing. But I''d also like to execute a page.replace_html command AFTER the page.visual_effect commands. I have a series of five DIVs: div1 div2 div3 div4 div5 When the user clicks on div1, a page.visual_effect