I have read over and over these docs... http://tapestry.apache.org/tapestry4.1/ajax/basics.html http://tapestry.apache.org/tapestry4.1/components/general/script.html http://tapestry.apache.org/tapestry4.1/faq.html#script-component Including Kent Tongs doc on scripting which is solely focused on form. My code operates outside of a form and dereferencing elements from "document." just does not work.Best regards Ken in nashua
From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Output variables in Tapestry Script - 4.1.3Date: Thu, 1 Nov 2007 09:11:58 -0400 Folks, I am using simple div/span... no form. When I attempt to index an element is showing undefined. 1. document.forms[0] produces my form alright and it has a name BUT document.forms.${myFormName} produces undefined at runtime ? Why the lapse ? myFormname equates to the actual form name EVEN this fails... document.forms['${myFormName}'] as undefined 2. Assignment to <span name="sams as id" show up blank in debugger ? This prevents me from accessing is using DOM notation. Jesse/Andy... can you assess/advise the usability of this script? The docs are too scarse on outputs and the example code in the docs is out of context. How are we suppose to assign values to a dom element (which I am mapping to an abstract ognl component method parameter) when accessing/subscripting/dereferencing these in script body is not even possible? <input-symbol...<let key="... There is no ability to de-reference variables beyond these thereafter. The docs state this is all powerful and usable but I oanly see inputs working... I need to manipulate outputs by setting values to parameters/values in the DOM space... (or setting properties in the OGNL space) within my script.Can someone give a comprehensive snippet that shows an authentic assignment within a script to assign to both parameters/values in the DOM space and setting properties in the OGNL space? I am trying to pioneer some fertile ground here and happy to produce a new widget for public consumption based on your framework. Thanks in advance...Best regards Ken in nashua Peek-a-boo FREE Tricks & Treats for You! Get 'em! _________________________________________________________________ Climb to the top of the charts! Play Star Shuffle: the word scramble challenge with star power. http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct