RE: [Zope] Getting an Error that I don't understand
Here is what the code looks like: <html> <body tal:define="userid request/userid | nothing"> <form tal:condition="userid"> <table repeat="result python: context.qUser(userid=userid)"> <tr> <td> <input type="text" name="userid" tal:attributes="value result/userid" tal:content="result/userid"> </td> </tr> </table> </form> </body> </html> Thanks, Laura ----Original Message----- From: Mark Gibson [mailto:mark@kaivo.com] Sent: Wednesday, April 28, 2004 11:32 AM To: Laura McCord Cc: zope@zope.org Subject: Re: [Zope] Getting an Error that I don't understand I'm only guessing - an empty html tag would be somthing like a <br> or <hr>. Putting a tal:content within such a tag doesn't make any sense, becuase these tags don't surround content. If this doesn't help, post the source of the page template that's producing this error. Mark Laura McCord wrote:
Could someone tell me what this means and what is the resolution.
Compilation failed TAL.TALDefs.TALError: empty HTML tags cannot use tal:content: 'input',
at line 7, column 1
I tried googling it but couldn't find an explaination or resolution.
Thanks, Laura
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Try this <input type="text" name="" tal:attributes="name result/userid" /> Andreas Heckel http://www.easyleading.org/ Laura McCord wrote:
Here is what the code looks like:
<html> <body tal:define="userid request/userid | nothing"> <form tal:condition="userid"> <table repeat="result python: context.qUser(userid=userid)"> <tr> <td> <input type="text" name="userid" tal:attributes="value result/userid" tal:content="result/userid"> </td> </tr> </table> </form> </body> </html>
Sorry ... last post was wrong ... try this : <input type="text" name="userid" value="" tal:attributes="value result/userid" /> Andreas Heckel http://www.easyleading.org/ Laura McCord wrote:
Here is what the code looks like:
<html> <body tal:define="userid request/userid | nothing"> <form tal:condition="userid"> <table repeat="result python: context.qUser(userid=userid)"> <tr> <td> <input type="text" name="userid" tal:attributes="value result/userid" tal:content="result/userid"> </td> </tr> </table> </form> </body> </html>
Here's your problem: <input type="text" name="userid" tal:attributes="value result/userid" tal:content="result/userid"> tal:content makes no sense in this context, since an input tag doesn't contain content. For example: <div>content</div> <span>content</span> <td>content</td> - all of these tags have content, and you could use tal:content when defining them.. An input tag does not. Mark Laura McCord wrote:
Here is what the code looks like:
<html> <body tal:define="userid request/userid | nothing"> <form tal:condition="userid"> <table repeat="result python: context.qUser(userid=userid)"> <tr> <td> <input type="text" name="userid" tal:attributes="value result/userid" tal:content="result/userid"> </td> </tr> </table> </form> </body> </html>
Thanks, Laura
----Original Message----- From: Mark Gibson [mailto:mark@kaivo.com] Sent: Wednesday, April 28, 2004 11:32 AM To: Laura McCord Cc: zope@zope.org Subject: Re: [Zope] Getting an Error that I don't understand
I'm only guessing - an empty html tag would be somthing like a <br> or <hr>. Putting a tal:content within such a tag doesn't make any sense, becuase these tags don't surround content.
If this doesn't help, post the source of the page template that's producing this error.
Mark
Laura McCord wrote:
Could someone tell me what this means and what is the resolution.
Compilation failed TAL.TALDefs.TALError: empty HTML tags cannot use tal:content: 'input',
at line 7, column 1
I tried googling it but couldn't find an explaination or resolution.
Thanks, Laura
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Laura McCord wrote:
Here is what the code looks like:
<html> <body tal:define="userid request/userid | nothing"> <form tal:condition="userid"> <table repeat="result python: context.qUser(userid=userid)"> <tr> <td> <input type="text" name="userid" tal:attributes="value result/userid" tal:content="result/userid"> </td> </tr> </table> </form> </body> </html>
What you try is to get something like: <input>Hello World</input> That is not allowed in HTML. "Start tag: required, End tag: forbidden" [1] [1] The 'INPUT' element <http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.4> Tonico
participants (4)
-
Andreas Heckel -
Laura McCord -
Mark Gibson -
Tonico Strasser