Re: ajax links produce too long javascript
https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax+rewriting On Wed, Sep 1, 2010 at 12:34 PM, Igor Vaynberg wrote: > that should be renamed to wicket-later, not happening in 1.5 > > -igor > > On Wed, Sep 1, 2010 at 7:32 AM, Pedro Santos wrote: >> https://cwiki.apache.org/WICKET/wicket-15-ajax.html >> >> On Wed, Sep 1, 2010 at 9:32 AM, Vladimir Kovalyuk 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 >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ajax links produce too long javascript
that should be renamed to wicket-later, not happening in 1.5 -igor On Wed, Sep 1, 2010 at 7:32 AM, Pedro Santos wrote: > https://cwiki.apache.org/WICKET/wicket-15-ajax.html > > On Wed, Sep 1, 2010 at 9:32 AM, Vladimir Kovalyuk 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 > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ajax links produce too long javascript
https://cwiki.apache.org/WICKET/wicket-15-ajax.html On Wed, Sep 1, 2010 at 9:32 AM, Vladimir Kovalyuk 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
ajax links produce too long javascript
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')