You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by ty renner <my...@gmail.com> on 2005/06/16 23:15:37 UTC

problem with reading plain html in tapestry class

Hi,

I am using Tapestry with Ajax via the xtile component. Here the ajax
thread returns me results for a search which I can show in the page
using html, as xtile returns only .

        <label>Name</label> 
         <input jwcid="searchName@TextField" value="ognl:elementName"/>
         <a href="javascript:void(0)"
onclick="sendValue(document.Form0.searchName.value);setPointer()">Go</a>
         <span jwcid="@xtile:XTile" listener="ognl:listeners.handleCallback" 
		        sendName="sendValue" receiveName="searchResults"
disableCaching="true"/>
         <br class="clearer" /> 
         <select jwcid="resultHolder@Select" multiple="ognl:true"
id="resultHolder" model="ognl:getElementResultModel()"
value="ognl:selectedElementItems" rows ="8">
             <option>-- Select --</option>
         </select> 
         <!--textarea type="textArea" id="resultHolder" value=""
rows="10" cols="60"></textArea-->
         <script>
	        function searchResults(arr) {
             	alert(arr.length);
            	
                var holder = document.getElementById("resultHolder");
                for(i=0; i<arr.length ; i++)
                {
                    option = document.createElement("option");
                    option.text=arr[i];
                    option.value=arr[i];
                    holder.add(option);
                }        
                 
                resetPointer();
            }
	    </script>
	    <span jwcid="@xtile:Timeout"/>

however once the result is added to the listbox, i want to read the

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org