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:
<div style="position:absolute;left:0;right:0;top:0;bottom:0;height: 100%;width:100%;cursor:default !important;z-index: 1000;background:repeat url(transparent.gif)"> <div style="position:absolute;left:20%;right:20%;top:20%;bottom: 20%;width:60%;height:60%;border:1px solid black;background:white">
Dialog content goes here
</div>
</div>
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, Robin 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, gary From: Robin Wyles [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 4:35 PM To: [email protected] 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.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
smime.p7s
Description: S/MIME cryptographic signature
