View Full Version : Ext.Direct cross domain

18 Jun 2009, 5:51 PM
Is there a way to have Ext.Direct generate stubs on a cross domain API?

The scenario is as follows:

We have a public web site that does 99% of its work same-site, but certain functionality requires a cross domain (e.g. ScriptTagProxy) HTTP request to a LAN based server (also managed by us) that has access to resources the public web server does not.

We would like to be able to provide an API via the script as you would normally do with Ext.Direct, but ideally Ext.Direct would realize that this is a cross domain request and instead of using AJAX to implement the method calls, would use ScriptTagProxy.

Does it already do this?

If not - where would I look to start implementing this functionality.

Thanks everyone.

18 Jun 2009, 6:03 PM
To follow up on my previous post, it looks like this may be possible by implementing a new provider, e.g. Ext.direct.CrossDomainProvider which would extend Ext.direct.RemotingProvider.

I'm not sure if this is the right road to go down, but I would be happy to implement if this is the correct extensibility point.

18 Jun 2009, 6:14 PM
At second glance - this may work out of the box by setting a different URL on the API and therefore - when the Ext.Ajax is called, it will automatically use scripttagproxy, going to test this out, but looks promising.

15 Oct 2013, 5:54 AM

I searched for "Ext.direct.CrossDomainProvider" but I did not found it. Can you please tell me from where we got that class?