[Users] Using ext-basex with GeoExt
Bart van den Eijnden
bartvde at osgis.nl
Thu Aug 26 08:32:54 CEST 2010
That's a good one for the FAQ if we had one :-)
Best regards,
Bart
--
Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html
Bart van den Eijnden
OSGIS
bartvde at osgis.nl
On Aug 25, 2010, at 10:55 PM, Andreas Hocevar wrote:
> Hi,
>
> you can use a global beforerequest handler instead of the override, like this:
>
> Ext.util.Observable.observeClass(Ext.data.Connection);
> Ext.data.Connection.on({
> "beforerequest": function(conn, options) {
> var url = options.url;
> if (OpenLayers.ProxyHost && OpenLayers.String.startsWith(url, "http") {
> var parts = url.replace(/&$/, "").split("?");
> var params = Ext.apply(parts[1] && Ext.urlDecode(
> parts[1]) || {}, options.params);
> var url = Ext.urlAppend(parts[0], Ext.urlEncode(params));
> delete options.params;
> options.url = OpenLayers.ProxyHost + encodeURIComponent(url);
> }
> }
> });
>
> Regards,
> Andreas.
>
> On Aug 25, 2010, at 22:39 , Adam Ratcliffe wrote:
>
>> Hi,
>>
>> I added the ext-basex library into my application so I could use the $JIT code-on-demand features. As I'm already using the GeoExt Ajax overrides, $JIT, which requires modifications to Ext.Ajax to function correctly, fails.
>>
>> I'm wondering if anybody has modified Ext.Ajax so that it can use OpenLayers.ProxyHost without requiring proxying Ext.Ajax requests through OpenLayers.Request?
>>
>> Cheers
>> Adam
>> _______________________________________________
>> Users mailing list
>> Users at geoext.org
>> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
>
>
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list