similar to: [PATCH] do not use beforeStart, afterFinish, beforeUpdate, and afterUpdate internally in combination effects

Displaying 20 results from an estimated 600 matches similar to: "[PATCH] do not use beforeStart, afterFinish, beforeUpdate, and afterUpdate internally in combination effects"

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
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 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''] },
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
2005 Jul 28
0
fix in effects.js
Hello. I was doing some work with the Appear and fade command and found a problem when you are not using an opicaty of 1.0. if you test it out with something like 0.4 it will always appear lighter than normal. this fixes it. render: function(pos) { if(pos != this.options.to) { if(this.options.transition) pos = this.options.transition(pos); pos = pos *
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 $$
2005 Aug 15
6
Possible to scroll window when user drags a draggable?
It doesn''t seem to be possible, but perhaps somebody knows a trick. I have some lists that get too long and users can''t drag from list 10, for example, to list 1. Is there a way to get the browser window to scroll as they drag the item up? Thanks! Tom
2005 Aug 07
8
Ajax forms and redirects
Here is an example that seems perfect for Ajax that I have not seen implemented nor can figure out how to do it. I am hoping someone can give me some pointers. On the sign-up page, I would like to do my validations (password length, username uniqueness,etc ) Ajax-style. But if all validates, then redirect to the success page. The combining of redirection to a new page with Ajax is throwing me.
2005 Aug 10
3
Limit to the number of draggables?
I''m wondering if there''s a max number of draggables. I have a situation where there are something like 60-80 draggable items and they work fine on the test server with only a handful of items, but in production with the full load they no longer work. It''s possible there''s something else different -- somehting with style sheets or something, but I wanted to see
2006 Apr 24
5
merging one array into another
Is there no better way to merge one array into another than iterating over the array you wish to append with each() and push()ing the elements on to the other array? Here''s what I mean: var arr1 = [1, 2, 3, 4, 5]; var arr2 = [''a'', ''b'', ''c'']; $A(arr2).each(function(el) { arr1.push(el) }); Is there no better way to do it than this?
2006 May 30
0
problem with effect toggle - please help
Hello, I''m having the following code below - when I click on the button in order to toggle a div, it is working when the div is visible - after it is toggled once, the beforeStart stuff isn''t executed anymore! interestingly, when I change this Effect.toggle(this.bContentWrap, ''blind'', { to this: Effect.toggle(this.bContentWrap, ''slide'',
2005 Aug 22
7
Drag-N-Drop Event Sinking With Remote Call
All, I''m new to Ruby so please excuse me if this issue has been addressed. My question pertains to performing image drag-n-drop event sinkings that fire off remote asynchronous server calls. Has anyone gotten this to work? If so, can you point me in a direction to obtain some sample code/on-line resources. Much Thanks Chris Alexander Senior Software Engineer Lexicon Pharmaceuticals,
2006 Apr 15
11
evalScripts in IE
My Ajax.Updater is set for evalScripts and it receives this: <script language="JavaScript">complete();</script> It works in FF but not IE. Is the above code the proper way to return scripts? Thanks!
2005 Jul 25
8
My try on nested sortables
Hello, please take a look at http://test.reasonmaker.com/sort/ where I made some hacks to allow for nested sortables. I need a hierarchical, sortable list, so I hacked away. It generally works quite nicely, but: ( - The code needs my debug stuff and failed attempts removed ) - The code needs to be adapted to also work with vertical sortables. It probably breaks vertical sortables.
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 Nov 05
4
Why Struts2 use dojo instead of Scriptaculous?
Hi, I''m using prototype/Scriptaculous in my open source project JSControlsTags http://jscontrolstags.sourceforge.net/ I''m Struts user and in the new version Struts2, the framework integrate AJAX with dojo and not with Prototype/Scriptaculous. I asked in the Struts forum, why Struts2 integrate by default dojo and not scriptaculous. Here Struts answer : ------------------------
2006 Feb 17
2
Sorting Multiple Arrays
Hey Cats, I''m having a problem. I''m working with an object that contains a bunch of arrays: var myObject = { "data": [ {"line": [1,"aoo","far"]}, {"line": [2,"boo","ear"]}, {"line": [3,"coo","dar"]}, {"line":
2006 Feb 27
3
bindAsEventListener with parameters
I would like to share a modification to bindAsEventListener() that might be useful to some of you. It makes it possible to do function show(event, number) { alert(Event.element(event).id + " = " + number); } Event.observe("el1", "click", show.bindAsEventListener(this, 5); Event.observe("el2", "click", show.bindAsEventListener(this, 10); That
2006 Jan 21
8
scriptaculous accordion feature - Jump?
Trying the accordion feature as offered at: http://wiki.script.aculo.us/scriptaculous/show/accordion+feature The objective is to remove the "jump" reported in the Rico accordion feature. My demo of the scriptaculous feature, however has a noticeable jump when tested if FireFox. and IE Win. See: http://www.jimdavis.org/accord3.html Have I implemented this incorrectly? Jim