You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Vladimir Kovalyuk <ko...@gmail.com> on 2010/09/01 14:32:53 UTC

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')

Re: ajax links produce too long javascript

Posted by Pedro Santos <pe...@gmail.com>.
https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax+rewriting

On Wed, Sep 1, 2010 at 12:34 PM, Igor Vaynberg <ig...@gmail.com> 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 <pe...@gmail.com> wrote:
>> https://cwiki.apache.org/WICKET/wicket-15-ajax.html
>>
>> On Wed, Sep 1, 2010 at 9:32 AM, Vladimir Kovalyuk <ko...@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-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
>
>



-- 
Pedro Henrique Oliveira dos Santos

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


Re: ajax links produce too long javascript

Posted by Igor Vaynberg <ig...@gmail.com>.
that should be renamed to wicket-later, not happening in 1.5

-igor

On Wed, Sep 1, 2010 at 7:32 AM, Pedro Santos <pe...@gmail.com> wrote:
> https://cwiki.apache.org/WICKET/wicket-15-ajax.html
>
> On Wed, Sep 1, 2010 at 9:32 AM, Vladimir Kovalyuk <ko...@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-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: ajax links produce too long javascript

Posted by Pedro Santos <pe...@gmail.com>.
https://cwiki.apache.org/WICKET/wicket-15-ajax.html

On Wed, Sep 1, 2010 at 9:32 AM, Vladimir Kovalyuk <ko...@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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org