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 <[email protected]> wrote: > 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 <[email protected]> wrote: > > > 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="entry">Computer</div> > > > If I run the search() function directly in the onclick-handler it > > works. However, with no fade- & appear-effects. > > > Maybe the following is an evidence: > > Sometimes Firefox Debug says, that one ")" is missing after argument > > list on position "new.Effect.Parallel(effects, afterFinish:** > > function().... > > > Cheers! > > > On 7 Apr., 11:26, Guillaume Lepicard <[email protected]> > > wrote: > > > 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 > > > Enumerable.invoke.curry("appear").bind($$('*.*solution')) > > > > On Wed, Apr 7, 2010 at 10:06 AM, C_B <[email protected]> wrote: > > > > 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 = []; > > > > $$(".solution").each( function(item) { > > > > effects.push( new Effect.Fade(item, {sync: true})); > > > > }); > > > > > new Effect.Parallel(effects, afterFinish: function() { > > > > search(area, choice, Enumerable.invoke.curry("appear").bind($ > > > > $('solution'))); > > > > }); > > > > } > > > > > Any evidence? > > > > > -- > > > > You received this message because you are subscribed to the Google > > Groups > > > > "Prototype & script.aculo.us" group. > > > > To post to this group, send email to > > > > [email protected]. > > > > To unsubscribe from this group, send email to > > > > [email protected]<prototype-scriptaculous%[email protected]> > > <prototype-scriptaculous%[email protected]<prototype-scriptaculous%[email protected]> > > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/prototype-scriptaculous?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Prototype & script.aculo.us" group. > > To post to this group, send email to > > [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<prototype-scriptaculous%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
