[OpenLayers-Dev] beyond ajax

Tim Schaub 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:
> Hey-
> 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:
> http://trac.openlayers.org/wiki/Proposal/Request
> If anybody cares to give it a whirl, see the patch attached to ticket #1565.
> http://trac.openlayers.org/ticket/1565
> This patch could use review.  Tests pass in FF2, IE6, IE7, Safari, and 
> Opera.
> Thanks,
> Tim
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
> !DSPAM:4033,484d68a267811336712104!

More information about the Dev mailing list