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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to