[Proto-Scripty] Re: Queues Effects

2010-04-07 Thread C_B
Thanks for your solution! Unfortunately, i am not able to get this work. Firefox Debug says: start is not defined - line 1. However, i have alredy checked all ;, ) and } but I am not able to troubleshoot. Here is my function: function start(area, choice) { var effects = [];

Re: [Proto-Scripty] Re: Queues Effects

2010-04-07 Thread Guillaume Lepicard
Hi How are you calling and defining the start function ? directly in your HTML page or through an Ajax Request ? if it is defined through an ajax request, you must use the syntax : var start = function() { ... }; is there some place where we can view the page ? And I've seen a missing dot again

[Proto-Scripty] Re: Queues Effects

2010-04-07 Thread C_B
Unfortunately I am actually not able to get the site online. I call the function like this: div onclick=javascript:start('age', 6) id=age6 class=entryComputer/div If I run the search() function directly in the onclick-handler it works. However, with no fade- appear-effects. Maybe the

Re: [Proto-Scripty] Re: Queues Effects

2010-04-07 Thread Guillaume Lepicard
Yes it is ! new Effect.Parallel(effects,* {* afterFinish: function() { search(area, choice, Enumerable.invoke.curry(appear).bind($$('solution'))); } *}* ); On Wed, Apr 7, 2010 at 11:54 AM, C_B i...@christian-baesler.de wrote: Unfortunately I am actually not able to get the site

[Proto-Scripty] Re: Queues Effects

2010-04-07 Thread C_B
Incredible! It works! Thanks!!! Fade out and search are sucessfully processed. There is only one thing left: it does not appear again softly, it seems like the effect would not run - the solution is there directly. On 7 Apr., 12:02, Guillaume Lepicard guillaume.lepic...@gmail.com wrote: Yes it

Re: [Proto-Scripty] Re: Queues Effects

2010-04-07 Thread Guillaume Lepicard
you are still missing the . css class prefix .bind($$('.solution')) On Wed, Apr 7, 2010 at 12:09 PM, C_B i...@christian-baesler.de wrote: Incredible! It works! Thanks!!! Fade out and search are sucessfully processed. There is only one thing left: it does not appear again softly, it seems

[Proto-Scripty] Re: Queues Effects

2010-04-07 Thread C_B
Unfortunately that is not the mistake. I have already corrected that. Last version of the function: function start(area, choice) { var effects = []; $$(.solution).each( function(item) { effects.push( new Effect.Fade(item, {sync: true})); }); new

[Proto-Scripty] Re: Queues Effects

2010-04-06 Thread C_B
Thanks a lot! I used Guillaume's version and it works fine! If you are able to solve my following problem regarding the same matter, you are my hero. I want to realize the same functionality, however with all elements of the class solution. I read about invoke but I am not really sure regarding

Re: [Proto-Scripty] Re: Queues Effects

2010-04-06 Thread Guillaume Lepicard
Hi, I guess that you want to fade all items with class solution (you are missing the dot class prefix) and on the afterFinish, you want to run a function that has as third parameter a callback function ? Because the way you had wrote it meant that your owned function *search* returned a function

[Proto-Scripty] Re: Queues Effects

2010-04-06 Thread C_B
Hi, yes you are. I already had the problem described. In fact, the following works fine: a href=# onclick=$$('.solution').invoke('fade',{ duration: 0.8, from: 1, to: 0 });Fade/a a href=# onclick=$$('.solution').invoke('appear',{ delay: 0.35 });return false;Appear/a All elements of the

Re: [Proto-Scripty] Re: Queues Effects

2010-04-06 Thread Guillaume Lepicard
Hi again, I understand what you want, but the problem this time is that you are dealing with several elements. When calling invoke, it is just as if you were looping on each item of your Enumerable and calling the invoked method for each of them, with all parameters - that is to say with