Thanks for your suggestion. I will try to do what you suggested and to see if it is working.
By the way, I like to point out that exact same codes work fine with old version Tapestry 5.0.0.18, but do not work with T5.1.0.5 when I am upgrading Tapestry. So there must be some changes on renderings since version T5.0.0.18. Maybe you experts can know why it happens? Thanks David Thiago H. de Paula Figueiredo wrote: > > On Tue, 02 Mar 2010 18:54:40 -0300, DavidWei <xinhua....@rrd.com> wrote: > >> When you mentioned "Static", I do not know what you mean? in my case, the >> parameters passed in have to be loaded dynamically because we are using a >> single text editor to edit many text areas so that each area(called >> content block) will have a unique id. > > @Inject RenderSupport and then use its addScript() method in some > rendering event handler method. That's the recommend way of generating > JavaScript code in Tapestry. It works very well in AJAX requests. There's > a very good example and explanation at > http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained. > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, > and instructor > Owner, software architect and developer, Ars Machina Tecnologia da > Informação Ltda. > http://www.arsmachina.com.br > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > -- View this message in context: http://old.nabble.com/Javascript-error-in-IE-when-a-javascript-call-in-an-Ajax-block-tp27761290p27768941.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org