[OpenLayers-Dev] Fwd: [OpenLayers-Trac] [OpenLayers] #1170: Ajax handler update

Tim Schaub tschaub at openplans.org
Tue Nov 27 13:59:02 EST 2007


Pierre GIRAUD wrote:
> What I want to discuss here is the fact that prototype has a specific
> handler for JSON responses (Content-type header of application/json).
> This isn't really new, and we already put some JSON relative code in
> our classes and method, though nobody knows it exists and really uses
> it.
> In my new patch, I chose to completely remove this JSON support.
> However, I would like to get your opinion on that. Would OpenLayers
> users be interested in having this sort of feature available ?
> One other note about that : the new 1.6.0 prototype Ajax API has been
> improved and now lets the user access a new responseJSON member.
> Give a look at http://www.prototypejs.org/2007/8/15/prototype-1-6-0-release-candidate
> and search for Ajax.

Hmm.  I'm a bit turned off by the prototype.js ajax stuff.  I'm more 
interested in things like http://code.google.com/p/xmlhttprequest/.  Now 
I know that is pretty bare bones, but I'd rather start with a uniform 
XHR interface and add a few utility methods around it.

I suggested this in http://trac.openlayers.org/ticket/1105.

Anyway, I know that doesn't really represent an opinion on your 
suggestion - but if any work is going to be done on the XHR stuff, I 
would like to see the result be something far simpler than what we've 
currently got.

If others really like the ajax stuff from prototype.js, then I'd suggest 
we take it wholesale - instead of trying to write a matching set of 
functionality in our namespace and keep up with their changes.  A nice 
small utility library around XHR would be pretty handy.


> This probably needs more explanation, don't hesitate to ask.
> Regards,
> Pierre
> ---------- Forwarded message ----------
> From: OpenLayers <trac at openlayers.org>
> Date: Nov 22, 2007 4:06 PM
> Subject: [OpenLayers-Trac] [OpenLayers] #1170: Ajax handler update
> To:
> Cc: trac at openlayers.org
> #1170: Ajax handler update
> ---------------------+------------------------------------------------------
>  Reporter:  pgiraud  |       Owner:
>      Type:  feature  |      Status:  new
>  Priority:  minor    |   Milestone:  2.6 Release
> Component:  general  |     Version:  2.5
>  Keywords:           |
> ---------------------+------------------------------------------------------
>  Here is a new patch with a complete update to match the 1.6.0 prototype
>  updates.
>  Some snippets of the code were not bring to OpenLayers. This concerns the
>  JSON evaluator built in prototype. I'll drop a note on that in the dev
>  list.
> --
> Ticket URL: <http://trac.openlayers.org/ticket/1170>
> OpenLayers <http://openlayers.org/>
> A free AJAX map viewer
> _______________________________________________
> Trac mailing list
> Trac at openlayers.org
> http://openlayers.org/mailman/listinfo/trac
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
> !DSPAM:4033,4745a036270331096210785!

More information about the Dev mailing list