similar to: { afterfinish }

Displaying 20 results from an estimated 200 matches similar to: "{ afterfinish }"

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:
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
2007 Jun 22
2
Waiting For Completion
I am writing an application that will display a series of images. When a link is clicked the images will fade away, and new images will fade in. I am starting by trying to simply fade the images out then back in through a function: function ChangeImage() { Effect.BlindDown(''MyElement'',{duration:0.5}); Effect.BlindUp(''MyElement'',{duration:0.5}); } This
2007 Sep 20
10
Element.addMethods functions swallowing exceptions (IE6 + 7)
IE6 and IE7 are not correctly handling the ''throw'' command for functions attached to Element via Element.addMethods. Firefox and Safari are fine. See the example below. For IE6: functions called with no attributes (ie: funcName()) correctly handle thrown errors. Funcions called with attributes (ie: funcName("foo")) will respond to the throw command and pass execution
2006 Jun 15
3
RE: Yahoo!-like Event object emulation/abstractionin Prototype?
Event.observe(myelement, ''click'', myfunc.bindAsEventListener()); That might fix your wagon. Greg > -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs- > bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Sam Rowe > Sent: Thursday, June 15, 2006 11:24 AM > To:
2006 Jun 12
10
Cross Broswer Fire Event
Is there a standard way of programmatically firing an event on an element? I think this code works in IE but not FF: myElement.fireEvent(''onclick''); I really only care about IE and FF, but anything else is a bonus. I didn''t see anything in prototype/scriptaculous for this, but I might have missed it. Thanks. Joe Athman
2006 Jun 15
10
RE: Yahoo!-like Event object emulation/abstractioninPrototype?
If that doesn''t work, then you''ve done something wrong somewhere. ''Cause it works for IE for me and everyone else. The only advantage I see with the YUI toolkit is that it''ll defer attaching events to elements that do not yet exist in the DOM. Big whoop, only a sloppy programmer would try to attach an event to a non-existant element. With Prototype, you can
2005 Nov 24
1
Extended $ function called $$
This code lets you use standard CSS selectors to get an array of elements. For example, $$("#container div.myElements") would return all subelements of #container that are divs and are of the class myElements. I submitted similar code a while back to the email address for the prototype library but never got a reply. Thought I''d post this in the hopes that some others will find
2006 May 05
0
Node wrapping, node replacement, magic buttons...
Hey all, I was wondering if any of you has done any thing allong the lines of node wrapping? For example, lets same I have a document containing: <span id="myElement">My element text</span> And I want to wrap myElement with another node like this: <div><span id="myElement">My element text</span></div> The only solution I found was
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 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 Jun 15
4
Yahoo!-like Event object emulation/abstraction in Prototype?
Hi, I was reading about the Yahoo! library recently and was really excited by the idea that I wouldn''t have to branch for IE in my event handlers. Is there any chance that such abstraction will come to Prototype? Thanks, Sam
2019 Jul 08
1
Format printing inside a matrix
Hi Abby, > > It is not desirable if a > > simple matrix subsetting will remove the class attributes of the object. > > I'm assuming by "the object" you are referring to the matrix. > And by "class attribute"-"s" you are referring to all the attributes. > This is a completely separate discussion from your original post. > And I don't
2005 Nov 04
19
Drag & Scroll
When using drag and drop, the browser window will not scroll if you move the mouse off the page. This makes it very difficult, if not impossible to create certain types of web applications. I know this has been mentioned before and is on the Wish List, but it''s very frustrating. If you look at this other Javascript library called "Drag''nDrop & DHTML Library"
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 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
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?