Re: Wicket.Event.subscribe - how to get a response header

2018-04-02 Thread Martin Grigorov
On Mon, Apr 2, 2018 at 3:53 PM, Entropy wrote: > Actually, yes, on some of our pages. That might explain it. So then in > that > case, how would I add a request header or check a response header from the > server? > As far as I know you cannot read the response headers from request made with I

Re: Wicket.Event.subscribe - how to get a response header

2018-04-02 Thread Entropy
Actually, yes, on some of our pages. That might explain it. So then in that case, how would I add a request header or check a response header from the server? -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html -

Re: Wicket.Event.subscribe - how to get a response header

2018-03-30 Thread Sven Meier
Are you trying to submit a multipart form via Ajax? Wicket uses an iframe for that case and jqXHR is will be null in case of a failure. Have fun Sven Am 30.03.2018 um 16:36 schrieb Entropy: Okay, but I am at a breakpoint and it definitely is null. This is in chrome and IE11. We use jQuery

Re: Wicket.Event.subscribe - how to get a response header

2018-03-30 Thread Entropy
Okay, but I am at a breakpoint and it definitely is null. This is in chrome and IE11. We use jQuery v1.12.4 if that makes a difference (I don't think it does). I'm sure I must be doing something to cause the issue, but I've no idea what. -- Sent from: http://apache-wicket.1842946.n4.nabble.com/

Re: Wicket.Event.subscribe - how to get a response header

2018-03-30 Thread Sven Meier
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 liste

Re: Wicket.Event.subscribe - how to get a response header

2018-03-29 Thread 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

Re: Wicket.Event.subscribe - how to get a response header

2018-03-26 Thread Sven Meier
jqXHR.getResponseHeader("Foo"); Have fun Sven Am 26. März 2018 14:23:32 MESZ schrieb Entropy : >I've defined a javascript event handler using Wicket.Event.subscribe. >How >would I get a response header in that callback? According to docs I >saw, >the parameters are: attrs, jqXHR, textStatus, jq

Wicket.Event.subscribe - how to get a response header

2018-03-26 Thread Entropy
I've defined a javascript event handler using Wicket.Event.subscribe. How would I get a response header in that callback? According to docs I saw, the parameters are: attrs, jqXHR, textStatus, jqEvent, errorThrown. I set a breakpoint and inspected each and didn't see a response header collection