similar to: :afterFinish not getting called?

Displaying 20 results from an estimated 300 matches similar to: ":afterFinish not getting called?"

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
2006 Jan 21
3
help... why can''t Iuse data from two tables in the same view
I am new to Rails and Ruby, and to OO languages, and seem to be making a very silly mistake somewhere here. Can anybody help? I am trying to write an application which involves ''exercises'', each of which consists of several ''templates''. This is based on MySQL tables with these names. I have models and controllers, built with the Rails Scaffold, for both
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 Oct 23
0
Using ActiveSupport::JSON in PrototypeHelper, ScriptaculousHelper
Hi all, I was looking at this ticket: http://dev.rubyonrails.org/ticket/6265 and it got me thinking: is there any reason we''re not using the tasty ActiveSupport::JSON encoder to assemble options for the various helper methods in PrototypeHelper and ScriptaculousHelper? At the moment, they use options_for_javascript() in JavaScriptHelper, which is a half-hearted JSON generator that
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
2010 Aug 29
0
active_support/mini_xml question/bug?
I''ve hit a problem which no one on the regular rails list seems to know about. I''ve studied the rails code but I can''t get to the bottom of it, so I thought I''d ask here. It''s about active_support/mini_xml: Seems to me that {}.to_xml is generating one level too many of xml structure, but I may be interpreting things incorrectly... I''ve reduced
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 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 18
6
wrong number of arguments (2 for 1) error message help
All, This is really starting to get me as i can''t figure out why I am getting this error. Here is what is going on. I have a table called items and a item controller. When I add a new item to the items table I am also creating several associated tables. the code for this so that you can follow along is: def create @item = Item.new(params[:item]) # The item belongs to
2006 Jan 20
1
[protoype] Problem with Effects on draggable element if revert is true
hi, I have a draggable element (cart-item) in a shopping cart <%= draggable_element "item_#{product}_#{i}", :revert => true %> When this element is dragged outside the cart into the "main_div", I want to show a puff effect and remove the element. When it is dragged within the cart, it should revert. So i wrote this code for drop_receiving _element <%=
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
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
2008 Jan 31
3
Handling multiple Check boxes in a XHTML Strict way
Hi, The default way we handle an array of checkboxes is like this: <% items.each do |item| %> <%= check_box_tag ''item[]'', "#{item.id}" %> <% end -%> this returns an array item[] that holds the ids of all the items. Now the real issue: 1. The above loop will same ids to ''n'' items 2. All ids will be ''item[]''
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
2008 May 07
2
Begginer question: how to edit using options_from_collection
Hi, I have been stuck on this problem for 2 hours and still have no idea how to do it. Basically I have a relationship between Workout and Exercise Exercise has many Work out anyway in my code at Workout.view the edit.html that was generated through scaffold I wrote this <% form_for(@workout) do |f| %> <p> <b>Exercise</b><br /> <%= select_tag
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 Aug 08
3
Updating a tr with RJS
I''m having a strange display issue when trying to update a tablerow using RJS. This is the code in the RJS template: page.replace_html "item_#{@item.id}", :partial => ''item_display'' So the existing <tr> has an id like item_1. When the update actions completes, it renders this template and effectively replaces the tr with item_display which as a