[Zope] Multiple SUBMIT images on one form
I gather that the problem whereby having more than one IMG submit on a single form causes some browsers (IE but not firefox) problems is well known. The problem is solved by using the positional attributes x,y in a cgi script. However, using Zope I cannot see how to access these atributes anmd certainly request.form does not appear to give me enough information to assertain which button has been submitted. I'll confess to still using 2.7.2 so someone may tell me it's fixed..or is there a workaround? Rick ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com ___ 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 )
Re: [Zope] Multiple SUBMIT images on one form
Andrew Milton wrote: +---[ Richard Smith ]-- | I gather that the problem whereby having more than one IMG submit on a | single form causes some browsers (IE but not firefox) problems is well | known. The problem is solved by using the positional attributes x,y in | a cgi script. | | However, using Zope I cannot see how to access these atributes anmd | certainly request.form does not appear to give me enough information to | assertain which button has been submitted. I'll confess to still using | 2.7.2 so someone may tell me it's fixed..or is there a workaround? Off the top of my head; request.name_of_image.x should work. request.form.name_of_image.x should work too. I haven't tried this for a while though, but, it's a quick thing you can try. Ah yes, thanks for the pointers. I was using BUTTON...IMG./BUTTON. Moving to INPUT type=image name=fredINPUT type=image... name=bill gives request.form.bill={x:,y:.} if bill is clicked. And it works in IE. Thanks ___ Yahoo! Photos NEW, now offering a quality print service from just 8p a photo http://uk.photos.yahoo.com ___ 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 )
[Zope] SQL query results as dtml values ?
Maybe my question was too dense. I will try again. lets say I do this in a ZSQL method SELECT * FROM foo; of course I get a table of results. Now can I some how run another query base on the results, like to do an UPDATE and have the dtml-sqlvar type=blah use the values from the table ? Please, I just need a little help here. Thanks Richard ___ Zope maillist - [EMAIL PROTECTED] 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 )
[Zope] SQL returns as dtml-sqlvar foobar ?
Say I have a query like.. SELECT * FROM foo; Can I, in Zope have the results come back so I can use then as dtml-sqlvars in other statements. Like have a link to update a row at the end of a table ? If so can someone give me an example ? Thanks Richard ___ Zope maillist - [EMAIL PROTECTED] 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 )