Displaying 20 results from an estimated 900 matches similar to: "[Fwd: stopping effects, help me again please]"
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:
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 Jun 12
0
Please! stopping effects, help me again
My friend Sigi wrote:
> Pulsator = Class.create();
> Pulsator.prototype = {initialize: function(element,options)
> {
> this.element = element;
> this.options = options || {};
> this.options.afterFinish = this.action.bind(this);
> this.stopped = false;
> this.action();
> },
> action: function(){
>
2006 May 18
1
stop effect
hi *
how can i stop a effect?
for example a effect.pulsate
is possible?
thanks
rag
2005 Jun 24
1
Executing custom effect for n seconds
Glad to see this list get going!
I have a custom effect ''Pulse'' that basically does an 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
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.attributes[''exercise_id''] },
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){
2005 Jun 27
1
stage left and right effects
Here are two effects (with a common base) that perform a stage
left/right effect. The effect is named after the Hanna Barbara
character Snagglepuss. :) It shakes the contents briefly and then
jets off (stage) to the left or right.
I used the Shake effect as a guide to this one. The StageBase accepts
the element and an "amount" to initially shake the element by. So in
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
2006 Sep 29
0
sortable and Pulsate on Internet Explorer bug
Maybe someone can help me to make the Effect.Pulsate working on Internet
Explorer in this example?
<ul id="list">
<li>Element 1</li>
<li>Element 2</li>
</ul>
<script>
Sortable.create("list");
new Effect.Pulsate("list");
</script>
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message
2006 Nov 21
1
Bug in Effect.Pulsate with IE?
Hi there,
can someone confirm a bug with IE and Effect.Pulsate()? When use the
Effect wihtout the option pulses the element is hiden after the effect
has finished.
When i use Effect.Pulsate(element, {pulses:3}) all runs fine.
In Firefox both calls runs fine...
Bye, René
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
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''s the element argument for?
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, { afterFinish:Form.enable(myform) } )
Any
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 stuff and
afterFinish for the user''s stuff,
2006 Dec 19
2
Effect.Pulsate on last scriptaculous
Somone have tested the last scriptaculous version that ships with last
prototype?
I you make an Effect.Pulsate, the element stays hidden after the effect
finish if the element don''t have opacity stablished. This is for the changes
on the setStyle method on prototype.
The original code is:
2006 Mar 27
0
Effect problems
Hi,
I developed my website locally with uniserver and everything was working
well. I uploaded all my stuff to my production server and suddenly,
nothing is the same... It seems that the queues are now broken and that
my effects are running at the same time. What could cause this bug??
or what is wrong in my code?? I call the function on page load.
Also, in IE, there is a kind of flash
2007 Oct 23
2
to_json inconsistency?
Hello,
ActiveSupport::JSON::Variable.to_json is the only to_json without an
"options" parameter. Is this intended?
For example, this code in a .rjs
page[@user.dom_id].visual_effect :drop_out, :afterFinish =>
ActiveSupport::JSON::Variable.new("foo")
fails with
ActionView::TemplateError: wrong number of arguments (1 for 0)
On line #7 of
2006 Apr 14
1
Script.aculo.us Effects with callbacks not working as it should.
Hello all!
I''m having a problem which is driving me insane.
It''s probably related to the fact that I''m new to javascript.... :)
Here''s the thing, I have a couple of effects which are all being put
in the queue.
Some of these effects have callbacks; e.g. "afterFinish".
But the calback is being made directly instead of after the effect is done.
The
2006 Apr 27
7
RJS & Ajax question...
Hi,
I''m trying to convert an older Rails application to use Ajax. I''ve
already moved my edit and show actions so that, instead of displaying as
separate pages, they appear in a <div> on my list view.
However, I have two problems:
1) When the user saves the changes, I want to put all the ajax changes
in an RJS template. However, form_remote_tag :url =>{:action =>
2006 May 03
1
Start/Finish events with $$ function?
Are there available events that can be hooked regarding the $$ function?
For example, my application makes use of a function similar to
$$(''.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 $$