Hi ,

I have a template which includes a javascript-function: 

function asyncCall (){
  if(($('quickTextField').value.length > 2))
  {
    new Ajax.Request ('${quickSearchBoxLink}',
{asynchronous:true,onSuccess:handleResponse});
  }     
}

However, this gets converted to (note the > instead of '>' (greater than)
:

function asyncCall (){
                        alert($('quickTextField').value);
                        
if(document.getElementById("quickTextField").value.length > 3)
                        {
                                new Ajax.Request 
('/aanbiedingen.quicknavigation:quickSearchBoxAction',
{asynchronous:true,onSuccess:handleResponse});
                        }
                        
                        
                }

Obviously this is because the template outputs well-formed XHTML. 
Still I need to include the function in the template since I need '
${quickSearchBoxLink}' to be translated by Tapestry. How to proceed? 

Thanks,
Geert-Jan
-- 
View this message in context: 
http://www.nabble.com/T5%3A-template-parser-XHTML-well-formed---%3E-javascript-goes-wrong-tp14576351p14576351.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to