Thanks for reply. I understand the browser executes javascript codes.
The problem I have is if I just simply execute a html file which includes javascript codes with comment tag directly using the browser, I can see the javascript codes are executed. But if I put the same javascript codes inside of a tml file in Tapestry app, the codes are not executed. by the way, the simple javascript codes listed in my email is simply used to be an example, is not something I am using in my app. So What caused the difference? David Thiago H. de Paula Figueiredo wrote: > > On Fri, 12 Feb 2010 14:31:09 -0200, DavidWei <xinhua....@rrd.com> wrote: > >> I am working to upgrade to T 5.1.0.5 and found this problem. >> >> When I include javascript codes with comment tag <!-- codes //-->in tml >> file, Tapastry treats it as html comment tag and never run the javasript >> codes. > > Tapestry doesn't execute JavaScript, the browser does. > By the way, any browser released in the last 8 or 9 years doesn't need you > to put JavaScript code inside HTML comments. > By the way (2), why do you need to write HTML through JavaScript when > you're using a Web framework? > > -- > 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/Problem%3A-T-5.1.0.5-renders-JavaScript-comment-tag-as-regular-html-comment-tag-tp27566063p27566744.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