Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 48590 invoked from network); 23 Oct 2007 19:51:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Oct 2007 19:51:34 -0000 Received: (qmail 99448 invoked by uid 500); 23 Oct 2007 19:40:40 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 99439 invoked by uid 500); 23 Oct 2007 19:40:40 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 99427 invoked by uid 99); 23 Oct 2007 19:40:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2007 12:40:40 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gary.larsen@envisn.com designates 216.57.116.7 as permitted sender) Received: from [216.57.116.7] (HELO mx2.pshift.com) (216.57.116.7) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2007 19:40:43 +0000 Received: from JAVAGUY1 (unverified [66.189.86.161]) by mx2.pshift.com (Vircom SMTPRS 4.4.568.54) with ESMTP id for ; Tue, 23 Oct 2007 15:39:33 -0400 X-Modus-BlackList: 66.189.86.161=OK;gary.larsen@envisn.com=OK X-Modus-RBL: 66.189.86.161=OK X-Modus-Trusted: 66.189.86.161=NO X-Modus-Audit: FALSE;0;0;0 From: "Gary Larsen" To: Subject: RE: CForms event - display javascript confirm dialog? Date: Tue, 23 Oct 2007 15:50:09 -0400 Message-ID: <00dc01c815ad$eb688440$4f01a8c0@envisnofc.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00DD_01C8158C.6456E440" X-Mailer: Microsoft Office Outlook 11 x-mimeole: Produced By Microsoft MimeOLE V6.00.2900.3198 Thread-Index: AcgVgrEGvR1Orf25T8OWhr7IALVjRwAKybZA In-Reply-To: <6DAE1121-DDA7-48EF-A53A-EFD521EE5322@robinwyles.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_00DD_01C8158C.6456E440 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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! Gary _____ From: Robin Wyles [mailto:rob@robinwyles.com] Sent: Tuesday, October 23, 2007 10:40 AM To: users@cocoon.apache.org 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:
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, 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:rob@robinwyles.com] Sent: Monday, October 22, 2007 4:35 PM To: users@cocoon.apache.org 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 and use custom styling to render it as a visible dojo dialog box. The event that should trigger the confirmation can simply set the 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 ------=_NextPart_000_00DD_01C8158C.6456E440 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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!

 

=

Gary

 

=

 

=

From: Robin = Wyles [mailto:rob@robinwyles.com]
Sent: Tuesday, October = 23, 2007 10:40 AM
To: users@cocoon.apache.org
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:

 

<div style=3D"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=3D"position:absolute;left:20%;right:20%;top:20%;bottom:20%;wid= th: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:rob@robinwyles.com] =
Sent: Monday, October 22, 2007 4:35 PM
To: users@cocoon.apache.org
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=




 



 

------=_NextPart_000_00DD_01C8158C.6456E440--