Re: [Zope] button instead of textlink and checking selection
Hi Chris, In future I will post in text-format. Sorry for the inconvience. Thanks for the answers. My problems are solved. Cheerio, Michael ----- Original Message ----- From: "Chris Withers" <chrisw@nipltd.com> To: "Michael Bleijerveld" <michael@bleijerveld.nl> Cc: <zope@zope.org> Sent: Thursday, July 31, 2003 5:34 PM Subject: Re: [Zope] button instead of textlink and checking selection
Hi Michael,
Please don't post in HTML, it's quite hard to read ;-)
Michael Bleijerveld wrote:
1) Instead of using the textlink Next I want to use a button (form) ? How can I establish this ? <dtml-if next-sequence> <a href="<dtml-var URL><dtml-var sequence-query>query_start=<dtml-var next-sequence-start-number>"><br>Next<dtml-var next-sequence-size></a> </dtml-if next-sequence>
<dtml-if next-sequence> <form action="<dtml-var URL"> <input type="submit" value="Next <dtml-var next-sequence-size>"> <input type="hidden" name="query_start" value="<dtml-var next-sequence-start-number>"> </form> </dtml-if>
2) How can I check if REQUEST[''ids] is not empty when using <dtml-call "manage_delObjects(REQUEST['ids'])"> ?
REQUEST.get('ids',[])
cheers,
Chris
_______________________________________________ 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 )
Hi Michael, if your clients are assumed to be better than Netscape 4.x (ie canb understand http1.1) then I suggest: <form action="&dtml-URL1;/pending_asset" method="post"> <input type="hidden" name="asset_id" value="&dtml-asset_id;"> <dtml-if "SERVER_PROTOCOL == 'HTTP/1.1'"> <button type="submit"><img src="im/exclaim.gif" alt="more info" width="14" height="14" border="0"></button> <dtml-else> <input type="submit" "name="submit" value="PENDING"> </dtml-if> </form> OK, this isn't wrapped around the <dtml> you need, but chris' first answer should be enough. This allows you to have better buttons than the crap submit button from forms. Paul
participants (2)
-
Michael Bleijerveld -
Paul Williams