Hello, This is a classic case of needing client-side behavior with server-side knowledge, and would be handled well by OO javascript. You could create a component for this but is seems like a mixin might be more appropriate. Checkout this article:
http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained It goes through the steps of creating a mixin fundamentally similar to what you need. You also might checkout the chenillekit / t5c window component. http://212.202.126.8/chenillekit-tapestry/ref/org/chenillekit/tapestry/core/components/Window.html Daniel Alonso Sanchez wrote: > Sorry for the strange subject :D, but i don't know the correct way to name > it. I have something that looks like this: > > <script type="text/javascript"> > function showWindow2() > { > ${window2.componentResources.id}.setTitle("Ayuda") > ${window2.componentResources.id}.setURL("${generarEnlace}"); > > ${window2.componentResources.id}.showCenter() > } > </script> > > But I would like to do something like adding two params to ShowWindow2 > function and pass them to "generarEnlace". The thing is that... it could be > possible? > > My final goal is to develop the functionality of helping links with modal > windows, where un link looks like this: > > javascript:showWindow2(12,35) > javascript:showWindow2(12,37) > > Each number are id's of form and field, respectively. > > Thanks in advance for the support ;D > -- http://thegodcode.net --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]