Hi Tommy, You are using this every day! Check out the HTML produced by Zope's own management interface (i.e., view source on a zope folder listing). It starts like this: <form action="http://your.server.com/your/path/" name="objectItems" method="post"> . . . It ends like this: <table cellspacing="0" cellpadding="2" border="0"> <tr> <td align="left" valign="top" width="16"></td> <td align="left" valign="top"> <div class="form-element"> <input class="form-element" type="submit" name="manage_renameForm:method" value="Rename" /> <input class="form-element" type="submit" name="manage_cutObjects:method" value="Cut" /> <input class="form-element" type="submit" name="manage_copyObjects:method" value="Copy" /> <input class="form-element" type="submit" name="manage_delObjects:method" value="Delete" /> <input class="form-element" type="submit" name="manage_importExportForm:method" value="Import/Export" /> Which shows that you just use <input type="submit" name="yourmethod:method" ... > There's lots of useful stuff right in the ZMI itself! -steve Tommy Johnson wrote:
I seem to remember someone telling me that I could marshal methods from form submit buttons. Currently, I use JavaScript to change the form's action property. So based on what button you press, you will go to the corresponding method.
Example: I have a form that has three submit buttons that need to do different things: update, remove, or continue. I want each button to go to a different action method. With javascript, it's easy, based on what button I press, I just change the form's action property, and then immediately submit the form.
But how do I do that with Zope's marshalling technique? I heard something:methodName, but what property of the submit button do I append the :methodname to?
Thanks in advance, Tommy
Innovation: The Best Way To Predict The Future ... Is To Create It.
_______________________________________________ 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 )