Hi,

Better use '/ajax/call/success'.
There you have the 'data' parameter or even jqXHR.responseText. You can
check for <redirect> element and extract its content with regex.
Yet another way is to use the response
header: jqXHR.getResponseHeader('Ajax-Location');

Martin Grigorov
Wicket Training and Consulting


On Tue, Jan 21, 2014 at 7:52 PM, fachhoch <[email protected]> wrote:

> I want to find if the ajax response is to redirect to a new page ?
> I use ajax buttons even for redirect to a new  wicket page, In the callback
> function to Wicket.Event.subscribe('/ajax/call/complete'  I want to find if
> the ajax response  is to redirect to a new page ,callback function
> parameter
> settings  it has responsetext   with a value
>   in case of redirect
>
> can I rely on this to identify  the ajax request is  redirect to a new page
> ?
>
>
>
> if not please advice how can I find the ajax request is a redirect to a new
> page .
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/wicket-event-ajax-call-complete-check-if-ajax-response-is-a-redirect-to-a-new-page-tp4663869.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to