On Mon, 17 Jan 2011 13:37:28 -0200, Stephan Windmüller <stephan.windmuel...@tu-dortmund.de> wrote:

On 14.01.2011 15:34, Thiago H. de Paula Figueiredo wrote:

The "select all" button works with or without JavaScript. This is
achieved by this code:
| <t:submit t:id="selectAll" onClick="selectAll(); return false;"/>
Have you tried event listeners instead of onclick? Like Prototype's
Event.observe()?

Since we do not use much JavaScript in our application, I am unfamiliar
with Prototype. Is there any basic documentation you can point me to?

Yes: http://api.prototypejs.org/ (general), http://api.prototypejs.org/dom/Event/observe/ (Event.observe)

I tried to add an Event.observe-function into my script in <head>, but
this is never loaded. I was unable to find a simple "how to get started"
document in the prototype docs. ;)

Put it inside a JS file included by @Import. Putting it in the head would probably not work due to the referred elements not being created yet.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, 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

Reply via email to