[ZPT] (no subject)

Michael Long mlong@datalong.com
Thu, 07 Nov 2002 00:28:16 -0500


I just answers my own question. I had another row in the table that had
some tags in it that were not wrapped in form tags. It appears that
these were appended to the url string even though they were outside of
the form tag. <sigh>


> I am building a table where each row is a form. The last row rendered
> builds the url string incorrectly. All the other rows build the url
> correctly. The first url below works correctly the second does not.
> 
>
http://myurl?RoleId=3&RoleName=Users&Id=3&frmAction=UpdateRole&id=&x=18&y=9
>
http://myurl?RoleId=3&RoleName=Users&Id=3&frmAction=UpdateRole&RoleId=&RoleName=&id=&x=18&y=9
> 
> Here is the script to build the table:
> 
> <table border="5" cellpadding="5">
>   <tr align="center" class="tblHead">
>     <th width="75">Role Id</th>
>     <th width="125">Role Name</th>
>     <th colspan="2" width="120">Action</th>
>   </tr>
>       <tr align="center"
>           tal:attributes="class python:repeat['role'].odd() and 'odd' or
> 'even'"
>           tal:repeat="role request/AllRoles">
>          <form action="" method="get">
>            <td><input tal:attributes="value role/role_id|default"
>                       type="text" name="RoleId" size="3"></td>
>            <td><input tal:attributes="value role/role_name|nothing"
>                       type="text" name="RoleName" size="12"></td>
>            <td><input type="image" src="Edit_txt.gif"></td>
>            <td><input type="image" src="Delete_txt.gif">
>                <input type="hidden" name="Id"
>                       tal:attributes="value role/role_id|nothing">
>                <input type="hidden" name="frmAction"
> value="UpdateRole"></td>
>          </form>
>       </tr>
> </table>
> 
> What could be causing this?
> 
> Thanks,
> Mike
> 
> 
> _______________________________________________
> ZPT mailing list
> ZPT@zope.org
> http://lists.zope.org/mailman/listinfo/zpt
> 
>