Re: Template parse error

2005-12-09 Thread amirsguard-tapestry
Yes, I am using the the html script tag and not using .script file. I have other scripts that are placed .script files, but since this was not generic I decided to put it directly in to the html file. I will move it to the .script file. Thanks for the reply! -Amir Geoff Longman <[EMAIL PR

Re: Template parse error

2005-12-09 Thread Geoff Longman
I think Amir is adding an html tag to the template and not using a tapestry .script file. The template parser doesn't handle inline javascript very well and I don't think it ever will. The solution would be to create .script file and place it in the classpath (at least in Tap 3 it has to be in t

Re: Template parse error

2005-12-09 Thread Richard Kirby
Hi, The script file is an XML file. Therefore you need to escape any special XML characters (ie & and <) with their entities, or better still, mark the whole section as cdata. If you look carefully, you have a < in the middle of your javascript, which any XML parser will assume marks the star

Template parse error

2005-12-08 Thread amirsguard-tapestry
Hi, I need to check that at least one check box is checked in a form, since this was reusable I simply put it in the .html page. The script: function onInvestigationStateSubmit(button) { var valid = false; var form = button.form; var select = form.stat