Hi Christian,
If you take a look at dojo comted implementation you can find how they
get specific transport:
this.currentTransport = dojox.cometd.connectionTypes.match(
data.supportedConnectionTypes,
data.version,
this._isXD
);
They provide _isXD flag which means "is this request cross domain?".
Also a few transports are implemented and they are right in cometd
folder:
longPollTransportFormEncoded.js
longPollTransportJsonEncoded.js
callbackPollTransport.js
Each of these transports registers itself in connectionTypes pool (a
line at the very bottom of each file) and implements check() function
which checks based on provided params in onnectionTypes.match() call
if this transport can be used.
CallbackPoll transport handles cross domain requests and it uses
dojo.io.script.get() inside.
Hope it helps.
Cheers,
Siarhei Barysiuk
P.S. As I said I had started own cometd wrapped implementation some
time ago using all qooxdoo OOP features but didn't have chance to
finish it. I'll take a look at this once again and will provide my
feedback.
On Oct 5, 2009, at 5:54 PM, panyasan wrote:
>
>
>
> panyasan wrote:
>>
>> - You need to make sure that the cometd server listens on the same
>> domain
>> and port
>> as the http server that serves the javascript files, otherwise it
>> won't
>> work
>> (because of the dame-domain security policy). This might require
>> that
>> you
>> add a redirection to the Apache server (for example, in my case, I
>> had
>> to use
>> "ProxyPass /cometd http://localhost:8090/cometd-demo-1.0.0rc0/
>> cometd"
>> to redirect the requests to /cometd on the Apache instance to the
>> Jetty
>> server instance, which is running the cometd server.
>>
>
> Just found this discussion thread:
>
> http://groups.google.com/group/cometd-users/browse_thread/thread/a358dc87d1efa91c
>
> saying that the cometd library does support cross-domain requests,
> which
> probably has to do with the "dojo.io.script.get()" command in the
> transport
> code. Does anybody on this list have deeper dojo knowledge?
>
> Thanks,
> Christian
>
> --
> View this message in context:
> http://n2.nabble.com/New-contribution-qooxdoo-cometd-wrapper-tp3764689p3769346.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart
> your
> developing skills, take BlackBerry mobile applications to market and
> stay
> ahead of the curve. Join us from November 9-12, 2009. Register
> now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel