[Zope] a warning message before performing an action

2007-06-14 Thread Alan

Dears,

I have a web page with some buttons (form action=...) to perform some
action (by calling a python script). However, some actions (like
'delete' a picture for example) I would like to warn user before
performing it. I recall from php how to pop up a window (or a drop
down in Mac OSX) with a warning message prompting a 'Yes' or 'No'
confirmation and I was wondering how would I do it with Zope, with an
example if possible.

Any help here would be very welcome.
Cheers,

Alan
___
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] a warning message before performing an action

2007-06-14 Thread Andreas Jung



--On 14. Juni 2007 16:18:11 +0100 Alan [EMAIL PROTECTED] wrote:


Dears,

I have a web page with some buttons (form action=...) to perform some
action (by calling a python script). However, some actions (like
'delete' a picture for example) I would like to warn user before
performing it. I recall from php how to pop up a window (or a drop
down in Mac OSX) with a warning message prompting a 'Yes' or 'No'
confirmation and I was wondering how would I do it with Zope, with an
example if possible.


This has basically nothing to do with Zope. Either you use client-side
Javascript to ask for confirmation or you submit to dedicated from asking 
the user for yes/no..that's trivial HTML.


-aj

pgpJTpQaZHMqy.pgp
Description: PGP signature
___
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] a warning message before performing an action

2007-06-14 Thread Maciej Wisniowski
 I have a web page with some buttons (form action=...) to perform some
 action (by calling a python script). However, some actions (like
 'delete' a picture for example) I would like to warn user before
 performing it. I recall from php how to pop up a window (or a drop
 down in Mac OSX) with a warning message prompting a 'Yes' or 'No'
 confirmation and I was wondering how would I do it with Zope, with an
 example if possible.
If you've opened pop up window with php then in fact it had to be
JavaScript. Possibly you're looking form something like:

if (confirm(Do you really want to remove this picture))
return true
return false

which may be used with onsubmit event of form object. Of course
this is javascript code not python.

-- 
Maciej Wisniowski
___
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 )