As you probably realise window.confirm() is a client side JS function so can't really be used in conjunction with CForms events. What I've done successfully in the past is to put the confirm dialog contents in a hidden <ft:group/> and use custom styling to render it as a visible dojo dialog box. The event that should trigger the confirmation can simply set the <ft:group/> to active.

Cheers,

Robin


On 22 Oct 2007, at 22:33, Gary Larsen wrote:

Is there an easy way to show a confirm dialog, like windows.confirm (), while processing an event in Cocoon Forms?



Thanks for any help.

gary



Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to