Thanks bud.

---- Original message ----
>Date: Thu, 7 Jul 2005 14:26:17 -0400
>From: Matt Blum <[EMAIL PROTECTED]>  
>Subject: Re: confirmation  
>To: MyFaces Discussion <[email protected]>
>
>   Try changing the onclick setting to "return
>   getConfirmation();" and see what happens.
>
>   -Matt
>
>   On 7/7/05, Dennis Byrne <[EMAIL PROTECTED]> wrote:
>
>     Does anyone know how to show a little javascript
>     confirmation
>     box for a commandLink Click event?  Please see the
>     code below:
>
>     <h:commandLink onclick="getConfirmation();"
>     action="#
>     {backer.majorConsequences }" value="Major
>     Consequences" />
>
>     <script language="javascript"  >
>             function getConfirmation(){
>                     if(confirm("Click either button, I
>     can't stop
>     this from happening anyways.")){
>                             // none of these work
>                             event.returnValue=true;
>                             event.cancelBubble=true;
>                             return true;
>                     }else{
>                             // none of these work
>                             event.returnValue=false;
>                             event.cancelBubble=false;
>                             return false;
>                     }
>             }
>     </script>
>     Dennis Byrne
Dennis Byrne

Reply via email to