Strophe stuck on "CONNECTING"

Hi all, I am trying the echobot example of the strophejs (1.0.1) library and I don’t seem to be able to connect to OpenFire (3.7.0 beta).

HTTP-BINDING is enabled, and if I browse to http://pongells.local:7070/http-bind/ (my local server) I see the usual HTTP ERROR 400 from jetty, therefore I suppose the server is ok.

Then, I edited the echobot.js to “var BOSH_SERVICE = 'http://pongells.local:7070/http-bind/’;

If I try to connect I only get:

Strophe is connecting.
LOG: _throttledRequestHandler called with 1 requests
LOG: request id 1.0 posting
LOG: request id 1.0 state changed to 1
SEND: LOG: request id 1.1 state changed to 4
LOG: request id 1.1 error 0 happened
LOG: request errored, status: 0, number of errors: 1
LOG: _throttledRequestHandler called with 1 requests
LOG: request id 2.1 posting
LOG: request id 2.1 state changed to 1
SEND: LOG: request id 2.2 state changed to 4
LOG: request id 2.2 error 0 happened
LOG: request errored, status: 0, number of errors: 2
LOG: _throttledRequestHandler called with 1 requests
LOG: request id 3.2 posting
LOG: request id 3.2 state changed to 1
SEND: LOG: request id 3.3 state changed to 4
LOG: request id 3.3 error 0 happened
LOG: request errored, status: 0, number of errors: 3
LOG: _throttledRequestHandler called with 1 requests
LOG: request id 4.3 posting
LOG: request id 4.3 state changed to 1
SEND: LOG: request id 4.4 state changed to 4
LOG: request id 4.4 error 0 happened
LOG: request errored, status: 0, number of errors: 4
LOG: _throttledRequestHandler called with 1 requests
LOG: request id 5.4 posting
LOG: request id 5.4 state changed to 1
SEND: LOG: request id 5.5 state changed to 4
LOG: request id 5.5 error 0 happened
LOG: request errored, status: 0, number of errors: 5
LOG: _onDisconnectTimeout was called
LOG: _doDisconnect was called
LOG: _throttledRequestHandler called with 0 requests

I really have no idea where the problem could be, I looked around a lot but found nothing.

(even tried adding rewrite rules, but do I need those?)

Nuff said, solved using flXHR (meh, I hate flash).

Apparently, different ports (apache is running on 8888, while bosh on 7070) are considered cross-domain.

Oh well.