Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Override Ext Ajax Request with OpenLayers Ajax Request to Heron #194

Closed
GoogleCodeExporter opened this issue May 10, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

For Ajax calls via OpenLayers, OpenLayers will automatically apply a proxy 
setting.
Via e.g. OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=";

This is mainly for WMS GetFeatureInfo and such. But for some Ajax calls, e.g. 
WFS, the Ext.Ajax lib is directly called from GeoExt.
So the GeoExt project created an override function that replaces Ext.Ajax with 
OpenLayers Ajax.
However GeoExt (1.1) did not include this override in its build so Heron apps 
always had to
add this line in their HTML:

    <script type="text/javascript" src="http://lib.heron-mc.org/geoext/1.1/lib/overrides/override-ext-ajax.js"></script>

This was often overlooked and lead to many hours of debugging why requests did 
not seem to use the OL Proxy.

So with this issue we move the override-ext-ajax.js function to  the existing 
Heron override-ext.js so it is always included.  Although this looks like 
duplication, the savings on time are great as we don't need to figure out when 
to include the separate override js file as it is now in Heron.js.


Original issue reported on code.google.com by [email protected] on 17 Apr 2013 at 2:14

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 17 Apr 2013 at 2:26

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant