You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Muro Copenhagen <co...@gmail.com> on 2010/11/30 12:07:41 UTC
Concerning changing image onsubmit
Hi,
I want to change the button image to a ajaxloader image, after the user
clicks on submit,
and there are no feedback errors.
It has to work both on a regular button and on a ajax button.
Any suggestions on how to make this work?
Best Regards
Muro
Re: Concerning changing image onsubmit
Posted by Martin Grigorov <mg...@apache.org>.
ajaxButton.add(new AttributeAppender("onclick", true,
"this.disabled='disabled'"));
On Wed, Dec 1, 2010 at 9:53 AM, Muro Copenhagen <co...@gmail.com>wrote:
> Hi Igor,
>
> Thanks for the reply...i found IndicatingAjaxButton that i could use.
>
> It almost does what i want, it adds the busy button next to the submit
> button.
>
> I now need to disable the original button.
>
> I tried this without any luck:
> http://wicketbyexample.com/disabling-an-ajax-submit-button/
>
> Do you know how to add an attribute like: style="display: none;"
> to the original submit button on the fly, when click.
>
> I mean what behavior to use/implement?
>
> Best Regards
> Muro
>
> On Tue, Nov 30, 2010 at 5:27 PM, Igor Vaynberg <igor.vaynberg@gmail.com
> >wrote:
>
> > write a behavior that adds javascript to the button that does that.
> >
> > -igor
> >
> > On Tue, Nov 30, 2010 at 3:07 AM, Muro Copenhagen <co...@gmail.com>
> > wrote:
> > > Hi,
> > >
> > > I want to change the button image to a ajaxloader image, after the user
> > > clicks on submit,
> > > and there are no feedback errors.
> > >
> > > It has to work both on a regular button and on a ajax button.
> > >
> > > Any suggestions on how to make this work?
> > >
> > > Best Regards
> > > Muro
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
Re: Concerning changing image onsubmit
Posted by Muro Copenhagen <co...@gmail.com>.
Hi Igor,
Thanks for the reply...i found IndicatingAjaxButton that i could use.
It almost does what i want, it adds the busy button next to the submit
button.
I now need to disable the original button.
I tried this without any luck:
http://wicketbyexample.com/disabling-an-ajax-submit-button/
Do you know how to add an attribute like: style="display: none;"
to the original submit button on the fly, when click.
I mean what behavior to use/implement?
Best Regards
Muro
On Tue, Nov 30, 2010 at 5:27 PM, Igor Vaynberg <ig...@gmail.com>wrote:
> write a behavior that adds javascript to the button that does that.
>
> -igor
>
> On Tue, Nov 30, 2010 at 3:07 AM, Muro Copenhagen <co...@gmail.com>
> wrote:
> > Hi,
> >
> > I want to change the button image to a ajaxloader image, after the user
> > clicks on submit,
> > and there are no feedback errors.
> >
> > It has to work both on a regular button and on a ajax button.
> >
> > Any suggestions on how to make this work?
> >
> > Best Regards
> > Muro
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Concerning changing image onsubmit
Posted by Igor Vaynberg <ig...@gmail.com>.
write a behavior that adds javascript to the button that does that.
-igor
On Tue, Nov 30, 2010 at 3:07 AM, Muro Copenhagen <co...@gmail.com> wrote:
> Hi,
>
> I want to change the button image to a ajaxloader image, after the user
> clicks on submit,
> and there are no feedback errors.
>
> It has to work both on a regular button and on a ajax button.
>
> Any suggestions on how to make this work?
>
> Best Regards
> Muro
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org