Andy, thanks for your reply. It turns out the problem I was having with slideto 
and slideby was because the tacos user guide is wrong. I discovered this using 
firebug and by including dojo.js.uncompressed.js instead of dojo.js. These are 
things that I'm sure everyone knows but I just discovered them, and maybe I can 
help another newbie.

In http://tacos.sourceforge.net/userguide/EffectsPopups.html, the doc for 
slideto says:

{[comp/elm id]:'[duration], [endCoords]'}

The correct order of arguments is:

{[comp/elm id]:'[endCoords],[duration]'}

Thanks,
Julian


----- Original Message ----
From: andyhot <[EMAIL PROTECTED]>
To: Julian Sinai <[EMAIL PROTECTED]>; Tacos Developers 
<tacos-devel@lists.sourceforge.net>
Sent: Tuesday, September 5, 2006 10:49:35 AM
Subject: Re: [Tacos-devel] Newbie: custom component tutorial?

Julian Sinai wrote:
> Hi--I'm new to tacos (and ajax in general). I've looked around but haven't 
> seen a tutorial component about how to roll your own tacos component. Is 
> there such a tutorial (or a simple example) anywhere? I've tried studying the 
> source code but it's a bit too advanced for me.
>
> Also, I'm having trouble using certain dojo effects, namely slideto and 
> slideby. They just don't work (IE or FF), but I'm probably doing something 
> wrong:
>
> <body jwcid="@Border" title="Tacos">
>     <span jwcid="@tacos:AjaxDirectLink" 
>         listener="listener:s2" 
>         preEffects="literal:{slideto:{s2:'3000,[800,1600]'}}"><p>slideto or 
> slideby--neither works</p>
>     </span>
>     <div jwcid="@Any" id="s2"><h2>s2</h2></div>
> </body>
>   
I'll try the exact example and see what happens.
> Note: The listener s2 doesn't do anything, and the border component just 
> declares the dojo libraries in the standard way.
>
> Also, effects like highlight and fadeout work as preEffects, but not as 
> effects. Any suggestions would be appreciated.
>   

You generally have to define the updateComponents parameter (in
AjaxDirectLink, AjaxForm, e.t.c.).
They define which components are going to be refreshed - rerendered.
When the ajax response is received, tacos updates the client html and
applies the effects that have been registered for them.
So, if a response does not contain a component, you can't have an effect
on it.

> Many thanks.
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Tacos-devel mailing list
> Tacos-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tacos-devel
>
>   


-- 
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 





-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Tacos-devel mailing list
Tacos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to