Hi,

we have a unit test for that. Here's the line for Wicket 6:

https://github.com/apache/wicket/blob/548e1c090bc67d2e36308beaca9243b48aaaf613/wicket-core/src/test/js/ajax.js#L564

Sven


Am 30.03.2018 um 01:20 schrieb Entropy:
For some reason, jqXHR is null when I run subscribe a failure listener.  It's
the third parameter, correct?

function onFailure(jqEvent, attributes, jqXHR, errorThrown, textStatus) {
        var value = jqXHR.getResponseHeader('myHeader');
        if('true' == value)
                //do something
}

Wicket.Event.subscribe('/ajax/call/failure', onFailure);



--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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

Reply via email to