You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Duy Do <du...@chess-com.com> on 2011/07/12 10:15:12 UTC

ModalWindow

Hi all,

When submit a form in modal window, browsers display a popup with 
message: /"Are you sure want  leave this page?"/
How we disable this popup?

Thanks,
Duy



RE: ModalWindow

Posted by Wilhelmsen Tor Iver <To...@arrive.no>.
> I already used AjaxButton but it still show that popup. Do we have other 
> options?

Do you have an onbeforeunload event handler that returns a value? That will trigger such a message as well.

- Tor Iver

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: ModalWindow

Posted by Duy Do <do...@gmail.com>.
It works after I added "Wicket.Window.unloadConfirmation = false;" into 
the page.

Thanks for your helps.

Cheers,
Duy


On 7/12/2011 3:43 PM, Ernesto Reinaldo Barreiro wrote:
> Maybe you are getting an Exception which is redirecting you to an
> error page... which can also produce what you describe...
>
> Ernesto
>
>
> On Tue, Jul 12, 2011 at 10:36 AM, Duy Do<do...@gmail.com>  wrote:
>> Thank you for your quick reply.
>>
>> I already used AjaxButton but it still show that popup. Do we have other
>> options?
>>
>> Duy
>>
>> On 7/12/2011 3:27 PM, Martijn Dashorst wrote:
>>> Use an AjaxSubmitButton instead of a normal SubmitButton (or
>>> AjaxSubmitLink...).
>>>
>>> You submit your form with a normal submit instead of an ajax one. The
>>> modalwindow script captures this and tries to help the user.
>>>
>>> Martijn
>>>
>>> On Tue, Jul 12, 2011 at 10:15 AM, Duy Do<du...@chess-com.com>    wrote:
>>>> Hi all,
>>>>
>>>> When submit a form in modal window, browsers display a popup with
>>>> message:
>>>> /"Are you sure want  leave this page?"/
>>>> How we disable this popup?
>>>>
>>>> Thanks,
>>>> Duy
>>>>
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: ModalWindow

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Maybe you are getting an Exception which is redirecting you to an
error page... which can also produce what you describe...

Ernesto


On Tue, Jul 12, 2011 at 10:36 AM, Duy Do <do...@gmail.com> wrote:
> Thank you for your quick reply.
>
> I already used AjaxButton but it still show that popup. Do we have other
> options?
>
> Duy
>
> On 7/12/2011 3:27 PM, Martijn Dashorst wrote:
>>
>> Use an AjaxSubmitButton instead of a normal SubmitButton (or
>> AjaxSubmitLink...).
>>
>> You submit your form with a normal submit instead of an ajax one. The
>> modalwindow script captures this and tries to help the user.
>>
>> Martijn
>>
>> On Tue, Jul 12, 2011 at 10:15 AM, Duy Do<du...@chess-com.com>  wrote:
>>>
>>> Hi all,
>>>
>>> When submit a form in modal window, browsers display a popup with
>>> message:
>>> /"Are you sure want  leave this page?"/
>>> How we disable this popup?
>>>
>>> Thanks,
>>> Duy
>>>
>>>
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: ModalWindow

Posted by Duy Do <do...@gmail.com>.
Thank you for your quick reply.

I already used AjaxButton but it still show that popup. Do we have other 
options?

Duy

On 7/12/2011 3:27 PM, Martijn Dashorst wrote:
> Use an AjaxSubmitButton instead of a normal SubmitButton (or AjaxSubmitLink...).
>
> You submit your form with a normal submit instead of an ajax one. The
> modalwindow script captures this and tries to help the user.
>
> Martijn
>
> On Tue, Jul 12, 2011 at 10:15 AM, Duy Do<du...@chess-com.com>  wrote:
>> Hi all,
>>
>> When submit a form in modal window, browsers display a popup with message:
>> /"Are you sure want  leave this page?"/
>> How we disable this popup?
>>
>> Thanks,
>> Duy
>>
>>
>>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: ModalWindow

Posted by Martijn Dashorst <ma...@gmail.com>.
Use an AjaxSubmitButton instead of a normal SubmitButton (or AjaxSubmitLink...).

You submit your form with a normal submit instead of an ajax one. The
modalwindow script captures this and tries to help the user.

Martijn

On Tue, Jul 12, 2011 at 10:15 AM, Duy Do <du...@chess-com.com> wrote:
> Hi all,
>
> When submit a form in modal window, browsers display a popup with message:
> /"Are you sure want  leave this page?"/
> How we disable this popup?
>
> Thanks,
> Duy
>
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org