see this thread
http://www.nabble.com/AttributeModifier-in-AjaxLink%27s-onClick.--Possible--tp22697831p22698229.html

2009/3/25 vela <[email protected]>:
>
> Hello,
>
> I have a  AjaxFallbackLink and on click of it, the application performs some
> action. But the application should continue only based on the confirmation
> dialog value of the java script.
>
> Lets say, the code is like this.
>
> add(new AjaxFallbackLink("delete")
> {
>   public void onClick(AjaxRequestTarget target)
>   {
>             target.appendJavascript("confirm('do you wanna to delete');");
>             // how to find the confirm dialog value whether ok or cancel is
> selected
>
>
>  }
> });
>
> How to acheive this?
> If there is any other way to achieve it,  please give an example.
> --
> View this message in context: 
> http://www.nabble.com/Getting-confirmation-Javascript-function-value-in-wicket-tp22699158p22699158.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to