struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <davelnew...@gmail.com>
Subject Re: JQuery Plugin Modal Dialog help needed
Date Mon, 10 Jan 2011 13:23:22 GMT
Without knowing how the delete link renders or how how it's handled in
JavaScript it's difficult to help. Doesn't seem like a Struts issue
yet, though. If it's just a simple link with an onclick it'll still
follow the link unless the onclick handler itself returns false or the
event isn't allowed to bubble up.

Dave

On Monday, January 10, 2011, RogerV <roger.varley@googlemail.com> wrote:
>
>
>
> Dave Newton-6 wrote:
>>
>> Seems more a JavaScript question... Does the click handler eventually
>> return
>> false so the browser won't actually follow the link?
>>
>
> The doDelete() function is my on-click handler which opens the dialog
> created by the <sj:dialog> tag. I was assuming (probably erroneously) that
> the true/false would come from the button handlers (continueButton() and
> cancelButton()) defined on the <sj:dialog> tag - but I never get a chance to
> click either button on the dialog, it displays correctly but doesn't block
> until a button is pressed, it proceeds directly into my delete action.
>
> Regards
>
> function doDelete() {
>         $('#confirm_delete').dialog('open');
>         }
>
> function continueButton() {
>         $('#confirm_delete').dialog('close');
>         return true;
> }
>
> function cancelButton() {
>         $('#confirm_delete').dialog('close');
>         return false;
> }
> --
> View this message in context: http://old.nabble.com/JQuery-Plugin-Modal-Dialog-help-needed-tp30631960p30633455.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message