https://cwiki.apache.org/WICKET/wicket-15-ajax.html

On Wed, Sep 1, 2010 at 9:32 AM, Vladimir Kovalyuk <koval...@gmail.com> wrote:
> Consider this javascript generated by AjaxFallbackLink:
>
> wicketShow('overlapping-div');var
> wcall=wicketAjaxGet('../../?x=Gusbl7hNSWOo5OPifLRHlQ',function() {
> ;wicketHide('overlapping-div');}.bind(this),function() {
> ;wicketHide('overlapping-div');}.bind(this), function() {return
> Wicket.$('link8f') != null;}.bind(this));return !wcall;
>
> I believe it is worth extracting redudant code from this snipped into a
> function. The result would take less space:
>
> wicketAjaxGet2('../../?x=Gusbl7hNSWOo5OPifLRHlQ', this, 'overlapping-div')
>



-- 
Pedro Henrique Oliveira dos Santos

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

Reply via email to