It's very simple thank to the excellent tapestry.fx support. You just need to do following:
Insert this in to your HTML template <script type="text/javascript"> dojo.require("tapestry.fx"); dojo.require("dojo.lfx"); tapestry.fx.attachPostEffect("tabs", function(){return dojo.lfx.highlight(["tabContentPanel", "selectedTabHeader"], [255, 255, 180]) }); </script> Where "tabs" - id of the component after which update you want to trigger highlight effect. "tabContentPanel", "selectedTabHeader" - id of the components that should be highlighted [255, 255, 180] - starting color for highligh (it's light yellow in the example) That's all. On 15/02/07, jiju <[EMAIL PROTECTED]> wrote:
you can try "effects" in tacos:submit Markus Joschko wrote: > > Hi Andreas, > Use a script file in which you specify the javascript call. You can > inject it into your code and call it within renderComponent: > > @InjectScript("SampleJavascript.script") > public abstract IScript getJavascript(); > > .. and ... > > if (cycle.getResponseBuilder().isDynamic()) { > getJavascript().execute(this, cycle, > TapestryUtils.getPageRenderSupport(cycle, this), null); > } > > The javascript will be send within the response and gets executed on the > client. > > Regards, > Markus > > > On 2/15/07, Andreas Pardeike <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I can't figure out how to trigger a simple js function after a >> component was asynchrony updated. What's the best way to do it? >> >> All I want is to is to visually flash my shopping basket status >> after it was refreshed with the new number of items so the user >> gets a better feedback after she clicked on a Buy button. >> >> Anyone? >> Andreas Pardeike >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Javascript-function-call-after-Ajax-component-update--tf3232388.html#a8984007 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Best regards, Renat Zubairov --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]