this works: onclick=''new Effect.Scale(this,50);'' but this does not: onclick=''new Effect.Scale(this,50,{queue:front}); new Effect.Scale (this,200,{queue:end});'' what is the correct syntax for using queue ? many thanks as I have just started wrapping my head around scriptaculous g
Siegfried Puchbauer
2006-Jun-24 18:21 UTC
Re: Correct syntax for using the Effects Queue ?
you have to put the queue position into single quotes.... new Effect.Scale(this,50, {queue: ''end''}); new Effect.Scale(this,200,{queue: ''end''}); hth On 6/24/06, Graham Anderson <grahama-oRhcz+sK1P8@public.gmane.org> wrote:> > this works: > onclick=''new Effect.Scale(this,50);'' > > but this does not: > onclick=''new Effect.Scale(this,50,{queue:front}); new Effect.Scale > (this,200,{queue:end});'' > > what is the correct syntax for using queue ? > > many thanks as I have just started wrapping my head around scriptaculous > > g > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >-- Mit freundlichen Grüßen Siegfried Puchbauer _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
I put the queue position in containing quotes, and the below still fails.....Firefox 1.5.0.4 and Safari 2.0.3. <a href=''javascript:void(0)'' onclick=''new Effect.Scale(this,50, {queue: ''front''}); new Effect.Scale(this,200,{queue: ''end''});''>some text</a> this works: <a href=''javascript:void(0)'' onclick=''new Effect.Scale(this, 50);''>some text</a> any idea where the syntax error is ? Just in case, the CSS for the containing DIV is: .diffnextsec { position: absolute; left: 702px; top: 464px; font-family: Verdana, Helvetica, Arial; font-style: italic; font-size: 11px; } many thanks g On Jun 24, 2006, at 11:21 AM, Siegfried Puchbauer wrote:> you have to put the queue position into single quotes.... > > new Effect.Scale(this,50, {queue: ''end''}); new Effect.Scale(this, > 200,{queue: ''end''}); > > hth > > On 6/24/06, Graham Anderson <grahama-oRhcz+sK1P8@public.gmane.org> wrote: > this works: > onclick=''new Effect.Scale(this,50);'' > > but this does not: > onclick=''new Effect.Scale(this,50,{queue:front}); new Effect.Scale > (this,200,{queue:end});'' > > what is the correct syntax for using queue ? > > many thanks as I have just started wrapping my head around > scriptaculous > > g > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > -- > Mit freundlichen Grüßen > > Siegfried Puchbauer > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Siegfried Puchbauer
2006-Jun-26 17:19 UTC
Re: Correct syntax for using the Effects Queue ?
you could provide the error message ... or do you have an online version of your test page? brgds sigi On 6/26/06, Graham Anderson <grahama-oRhcz+sK1P8@public.gmane.org> wrote:> > I put the queue position in containing quotes, and the below still > fails.....Firefox 1.5.0.4 and Safari 2.0.3.<a href=''javascript:void(0)'' > onclick=''new Effect.Scale(this,50, {queue: ''front''}); new Effect.Scale(this,200,{queue: > ''end''});''>some text</a> > > this works: > <a href=''javascript:void(0)'' onclick=''new Effect.Scale(this,50);''>some > text</a> > > > any idea where the syntax error is ? > > > > > Just in case, the CSS for the containing DIV is: > .diffnextsec { > position: absolute; > left: 702px; > top: 464px; > font-family: Verdana, Helvetica, Arial; > font-style: italic; > font-size: 11px; > } > > > > > > many thanks > > g > > > > On Jun 24, 2006, at 11:21 AM, Siegfried Puchbauer wrote: > > you have to put the queue position into single quotes.... > > new Effect.Scale(this,50, {queue: ''end''}); new Effect.Scale(this,200,{queue: > ''end''}); > > hth > > On 6/24/06, Graham Anderson <grahama-oRhcz+sK1P8@public.gmane.org> wrote: > > > > this works: > > onclick=''new Effect.Scale(this,50);'' > > > > but this does not: > > onclick=''new Effect.Scale(this,50,{queue:front}); new Effect.Scale > > (this,200,{queue:end});'' > > > > what is the correct syntax for using queue ? > > > > many thanks as I have just started wrapping my head around scriptaculous > > > > g > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > > -- > Mit freundlichen Grüßen > > Siegfried Puchbauer_______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > >-- Mit freundlichen Grüßen Siegfried Puchbauer _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Well, I kinda feel like an idiot I changed the ''onclick'' containing quotes to double quotes instead of single quotes this DOES Work: <a href=''javascript:void(0)'' onclick="new Effect.Scale(this,50, { queue: ''front'' }); new Effect.Scale(this,200, { queue: ''end'' });">some text</a> g On Jun 26, 2006, at 10:19 AM, Siegfried Puchbauer wrote:> you could provide the error message ... or do you have an online > version of your test page? > > brgds > > sigi > > On 6/26/06, Graham Anderson < grahama-oRhcz+sK1P8@public.gmane.org> wrote: > I put the queue position in containing quotes, and the below still > fails.....Firefox 1.5.0.4 and Safari 2.0.3. > <a href=''javascript:void(0)'' onclick=''new Effect.Scale(this,50, > {queue: ''front''}); new Effect.Scale (this,200,{queue: > ''end''});''>some text</a> > > this works: > <a href=''javascript:void(0)'' onclick=''new Effect.Scale(this, > 50);''>some text</a> > > > any idea where the syntax error is ? > > > > > Just in case, the CSS for the containing DIV is: > .diffnextsec { > position: absolute; > left: 702px; > top: 464px; > font-family: Verdana, Helvetica, Arial; > font-style: italic; > font-size: 11px; > } > > > > > > many thanks > > g > > > > On Jun 24, 2006, at 11:21 AM, Siegfried Puchbauer wrote: > >> you have to put the queue position into single quotes.... >> >> new Effect.Scale(this,50, {queue: ''end''}); new Effect.Scale(this, >> 200,{queue: ''end''}); >> >> hth >> >> On 6/24/06, Graham Anderson <grahama-oRhcz+sK1P8@public.gmane.org> wrote: >> this works: >> onclick=''new Effect.Scale(this,50);'' >> >> but this does not: >> onclick=''new Effect.Scale(this,50,{queue:front}); new Effect.Scale >> (this,200,{queue:end});'' >> >> what is the correct syntax for using queue ? >> >> many thanks as I have just started wrapping my head around >> scriptaculous >> >> g >> _______________________________________________ >> Rails-spinoffs mailing list >> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >> >> >> >> -- >> Mit freundlichen Grüßen >> >> Siegfried Puchbauer >> _______________________________________________ >> Rails-spinoffs mailing list >> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > > -- > Mit freundlichen Grüßen > > Siegfried Puchbauer > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs