cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Larsen" <>
Subject RE: CForms event - display javascript confirm dialog?
Date Tue, 23 Oct 2007 19:50:09 GMT
Hi Robin,


I can't thank you enough for your assistance.  With a little bit of tweaking
I was able to get a popup confirmation dialog working exactly as I wanted!






From: Robin Wyles [] 
Sent: Tuesday, October 23, 2007 10:40 AM
Subject: Re: CForms event - display javascript confirm dialog?


Hi Gary,


I don't remember the Dojo stuff being in 2.1.9... but you can easily achieve
the same effect using just HTML and CSS with something like this:


%;cursor:default !important;z-index:1000;background:repeat

ght:60%;border:1px solid black;background:white">

        Dialog content goes here




The outer div is a wrapper for the dialog box, it fills the screen - you
will need to fill it with a transparent gif for it to be modal (the only
CSS/HTML method I've found that works reliably with IE). The inner div is
the actual dialog box containing your content.


You might have to experiment with where the dialog appears within your HTML,
especially if it appears within other elements which have
'position:absolute' .


Hope this helps,





On 23 Oct 2007, at 15:01, Gary Larsen wrote:

Hi Robin,


Thanks for the advice.  I hope you don't mind another question.


Is it possible to implement a dojo dialog box in Cocoon 2.1.9?  This is new
to me so if you could point me to an example that would be great!


Thanks again,




From: Robin Wyles [] 
Sent: Monday, October 22, 2007 4:35 PM
To:  <>
Subject: Re: CForms event - display javascript confirm dialog?


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.







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.




View raw message