A generic web service has to at least support JSONP, to be usable with 
ScriptTransport. Those that do (like Yahoo's YQL) usually provide a 
dedicated parameter in their API, where you can pass the string that is 
used as the callback. The server will then wrap its results in that 
call. You might want to check the qx.data.store.Yql class, to see how it 
is done with YQL.

T.

On 05/07/2011 12:44 PM, dabd wrote:
>> From what I read in the forums and the documentation the only way to make a
> cross-domain request is to use the ScriptTransport but this requires that
> the server agrees to return a call to
>
>   qx.io.remote.ScriptTransport._requestFinished(id, returnValue);
>
>
> But what if I have no control of what the server returns and all I can do is
> request a MIME type of application/json? How can I consume such a web
> service from qooxdoo?
> I would appreciate an example.  Thanks.
>
> --
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/cross-domain-AJAX-ScriptTransport-tp6339909p6339909.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today.  Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to