Button defined actions in zpt
Hi all, I've noticed that both :method and :action do nothing when they are in a zpt. Is there any known workaround for this? Example: <input type="submit" name="admin_rename_form:method" value="Rename" /> <input type="submit" name="admin_duplicate:method" value="Duplicate" /> <input type="submit" name="admin_delete:method" value="Delete" />
Hi, I've a form-field set that would be convinient to name as a record, something like: <input type="text" name="aForm.aField:record" value="aValue"> Having the necessity to reference some of these fields using java script, it appears that the fieldname violates the js namimg conventions. I know that I can change name like aForm_aField, but this forces me to extract the dictionary parsing the REQUEST.form. Does somebody know if there is a way to work around the js problem using the :record naming convention? TIA, p.t.
Use the following syntax: form['aForm.aField:record'] hth, -Casey On Fri, 2002-05-31 at 12:20, p.t. wrote:
Hi, I've a form-field set that would be convinient to name as a record, something like:
<input type="text" name="aForm.aField:record" value="aValue">
Having the necessity to reference some of these fields using java script, it appears that the fieldname violates the js namimg conventions. I know that I can change name like aForm_aField, but this forces me to extract the dictionary parsing the REQUEST.form. Does somebody know if there is a way to work around the js problem using the :record naming convention? TIA, p.t.
Casey, do you mean that I should call the js like this: onclick="assign(this, form['aForm.aField:record'])" or what? p.t. At 13:08 31/05/2002 -0400, Casey Duncan wrote:
Use the following syntax:
form['aForm.aField:record']
hth,
-Casey
On Fri, 2002-05-31 at 12:20, p.t. wrote:
Hi, I've a form-field set that would be convinient to name as a record, something like:
<input type="text" name="aForm.aField:record" value="aValue">
Having the necessity to reference some of these fields using java script, it appears that the fieldname violates the js namimg conventions. I know that I can change name like aForm_aField, but this forces me to extract the dictionary parsing the REQUEST.form. Does somebody know if there is a way to work around the js problem using the :record naming convention? TIA, p.t.
_______________________________________________ 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 (3)
-
Casey Duncan -
p.t. -
Pablo Ziliani