Hi, I have come across a strange problem. I have created a Zope application to collect information through a Zope form. The input form works. I also give the users the ability to update. But I notice something strange. <tr> <td width="27%">Item Number Required:</td> <td width="73%"> <input type="text" name="item_num_required" size="50" value=<dtml-var item_num_required>> </td> </tr> When get the record only the first word in the field will appear. But if I use this - <tr> <td width="27%">Part Number Required:</td> <td width="73%"> <textarea name="part_num_required" rows="1" cols="50"><dtml-var part_num_required> </textarea> </td> </tr> I see the entire field using this method. Any thoughts?? Larry McDonnell Proton Energy Systems 50 Inwood Rd. Rocky Hill, CT 06067 (860) 571-6533 ext. 531 Email:lmcdonnell@protonenergy.com www.protonenergy.com
McDonnell, Larry wrote:
Hi,
I have come across a strange problem. I have created a Zope application to collect information through a Zope form. The input form works. I also give the users the ability to update. But I notice something strange.
<tr> <td width="27%">Item Number Required:</td> <td width="73%"> <input type="text" name="item_num_required" size="50" value=<dtml-var item_num_required>> </td> </tr>
When get the record only the first word in the field will appear. But if I use this -
<input type="text" name="item_num_required" size="50" value="<dtml-var item_num_required>"
quoting the value-paramter should work. -mj -- Maik Jablonski __o www.zfl.uni-bielefeld.de _ \<_ Deutsche Zope User Group Bielefeld, Germany (_)/(_) www.dzug.org
On Thu, 8 Aug 2002, McDonnell, Larry wrote:
Hi,
I have come across a strange problem. I have created a Zope application to collect information through a Zope form. The input form works. I also give the users the ability to update. But I notice something strange.
<tr> <td width="27%">Item Number Required:</td> <td width="73%"> <input type="text" name="item_num_required" size="50" value=<dtml-var item_num_required>>
Try value="<dtml-var item_num_required>">. All tag attribute values in HTML which have spaces in them must be quoted. (For XHTML compliance _all_ attribute values should be quoted anyway!) David
</td> </tr>
When get the record only the first word in the field will appear. But if I use this -
<tr> <td width="27%">Part Number Required:</td> <td width="73%"> <textarea name="part_num_required" rows="1" cols="50"><dtml-var part_num_required> </textarea> </td> </tr> I see the entire field using this method. Any thoughts??
Larry McDonnell
Proton Energy Systems 50 Inwood Rd. Rocky Hill, CT 06067 (860) 571-6533 ext. 531 Email:lmcdonnell@protonenergy.com www.protonenergy.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
I think you need (double) quotes around the value attribute in the first example, so: <input type="text" name="item_num_required" size="50" value="<dtml-var item_num_required>"> otherwise the HTML is invalid, as the following words are taken as separate attributes. McDonnell, Larry wrote:
Hi,
I have come across a strange problem. I have created a Zope application to collect information through a Zope form. The input form works. I also give the users the ability to update. But I notice something strange.
<tr> <td width="27%">Item Number Required:</td> <td width="73%"> <input type="text" name="item_num_required" size="50" value=<dtml-var item_num_required>> </td> </tr>
When get the record only the first word in the field will appear. But if I use this -
<tr> <td width="27%">Part Number Required:</td> <td width="73%"> <textarea name="part_num_required" rows="1" cols="50"><dtml-var part_num_required> </textarea> </td> </tr> I see the entire field using this method. Any thoughts??
Larry McDonnell
Proton Energy Systems 50 Inwood Rd. Rocky Hill, CT 06067 (860) 571-6533 ext. 531 Email:lmcdonnell@protonenergy.com www.protonenergy.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Ben Avery -
DA Loeffler -
Maik Jablonski -
McDonnell, Larry