[OpenLayers-Dev] beyond ajax
tschaub at opengeo.org
Mon Jun 9 16:03:00 EDT 2008
Thanks Eric Lemoine for the thoughtful review on this.
The new request methods are now in the trunk. If you find yourself
wanting to use anything in the OpenLayers.Ajax namespace (or really,
anything in Ajax.js), please find the alternatives.
Alternative to OpenLayers.Ajax.Request:
OpenLayers.Request functions described here -
Alternative to OpenLayers.loadURL:
OpenLayers.Request functions described above (not necessary to change
your code, just a matter of preference).
Alternative to OpenLayers.parseXMLString:
Use the OpenLayers.Format.XML parser (read method).
Use the OpenLayers.Format.XML parser (getElementsByTagNameNS method).
Use the OpenLayers.Format.XML parser (write method).
Tim Schaub wrote:
> Just hoping to catch attention with a provocative subject line.
> I've put together some convenience methods that do a decent job of
> replacing the code in Ajax.js (in my opinion). The background,
> description of the solution, and examples of new XHR request style are
> documented here:
> If anybody cares to give it a whirl, see the patch attached to ticket #1565.
> This patch could use review. Tests pass in FF2, IE6, IE7, Safari, and
> Dev mailing list
> Dev at openlayers.org
More information about the Dev