[EMAIL PROTECTED] writes:
>>>>>>> I've subclassed qx.io.remote.IframeTransport and want to tell the remote
>>>>>>> request object to use this transport.
>>>>>>>
>>>>>>> How can this be done?
>
> Now you're getting into "internals"; this ability is not quite exposed to the
> user. What it appears you'll have to do is modify
> qx.io.remote.RemoteExchange.typesOrder to insert your subclass before
> IframeTransport. The value of qx.io.remote.RemoteExchange.typesOrder is:
>
> qx.io.remote.RemoteExchange.typesOrder =
> [
> "qx.io.remote.XmlHttpTransport",
> "qx.io.remote.IframeTransport",
> "qx.io.remote.ScriptTransport"
> ];
>
> so you'll likely want to modify it something like this:
>
> qx.io.remote.RemoteExchange.typesOrder =
> [
> "qx.io.remote.XmlHttpTransport",
> "mySubclassOfIframeTransport",
> "qx.io.remote.ScriptTransport"
> ];
Additionally, you need to make your subclass "available":
qx.io.remote.RemoteExchange.registerType(mySubclassOfIframeTransport,
"mySubclassOfIframeTransport);
The first parameter is your class; the second is the textual class name.
Register your type before issuing any remote requests. The list of registered
types is only scanned on the first request, and the list is cached.
Derrell
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel