You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Olivier Dutrieux <ol...@pasteur.fr> on 2013/11/08 19:45:48 UTC

Handler after jqXhR success et before ajax response proccess

I use a AjaxCallListener (getBeforeHandler) to execute some javascript before
the ajax processing, but I don't find a handler to execute some javascript
after jqXHR.success et before the Ajax response is process.

Is there a aim ?

Duto



-----
Duto
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Handler-after-jqXhR-success-et-before-ajax-response-proccess-tp4662239.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Handler after jqXhR success et before ajax response proccess

Posted by Olivier Dutrieux <ol...@pasteur.fr>.
thx for your response Martin,

Maybe a handler in the IAjaxCallListener (between jqXHR.success and Ajax
response is process) will be very nice feature in the future version of
wicket :)

Duto





-----
Duto
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Handler-after-jqXhR-success-et-before-ajax-response-proccess-tp4662239p4662294.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Handler after jqXhR success et before ajax response proccess

Posted by Martin Grigorov <mg...@apache.org>.
Hi,


On Sat, Nov 9, 2013 at 12:16 AM, Olivier Dutrieux <
olivier.dutrieux@pasteur.fr> wrote:

> Is there a aim to execute processAjaxResponse (javascript method to handled
> the ajax response by wicket-ajax.js) in IAjaxCallListener's success handler
> if I set wr ajaxAttribute to false ?
>

Yes, this should work.
Set 'wr' to false then create a new instance of Wicket.Ajax and call
processAjaxResponse() on it with all the required parameters.

Another option is to set some custom attribute to the div in beforeSend().
Then in success() you can check whether this custom attribute is still
there and decide what to do depending on this information.


> Duto
>
>
>
>
>
> -----
> Duto
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Handler-after-jqXhR-success-et-before-ajax-response-proccess-tp4662239p4662245.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Handler after jqXhR success et before ajax response proccess

Posted by Olivier Dutrieux <ol...@pasteur.fr>.
Is there a aim to execute processAjaxResponse (javascript method to handled
the ajax response by wicket-ajax.js) in IAjaxCallListener's success handler
if I set wr ajaxAttribute to false ?

Duto





-----
Duto
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Handler-after-jqXhR-success-et-before-ajax-response-proccess-tp4662239p4662245.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Handler after jqXhR success et before ajax response proccess

Posted by Olivier Dutrieux <ol...@pasteur.fr>.
To simple explain : on before XHRHttpRequest I change some div and want to
restore the div before Ajax response is processed because sometime the
respond processed update the div and sometime not. and if the ajax response
update the div I want to keep it (don't restore it) and if the div is not
update I want to restore it and for me the best think is to restore it in
all case before the response is processed ...

Sorry for my english :s

Duto



-----
Duto
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Handler-after-jqXhR-success-et-before-ajax-response-proccess-tp4662239p4662242.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Handler after jqXhR success et before ajax response proccess

Posted by Sven Meier <sv...@meiers.net>.
There's no callback before the Ajax response is processed - what do you 
need it for?

Sven

On 11/08/2013 07:45 PM, Olivier Dutrieux wrote:
> I use a AjaxCallListener (getBeforeHandler) to execute some javascript before
> the ajax processing, but I don't find a handler to execute some javascript
> after jqXHR.success et before the Ajax response is process.
>
> Is there a aim ?
>
> Duto
>
>
>
> -----
> Duto
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Handler-after-jqXhR-success-et-before-ajax-response-proccess-tp4662239.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> 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