rafikk/ply — Issue #5: Is ajax.js is too restrictive...
Author: richardscarrott
Created: 2011-11-11 19:01:10+00:00
State: open

I'm not sure whether the idea of abstracting jQuery's ajax method to allow the implementation to be switched out is realistic and in fact it I think it unnecessarily restricts ajax functionality.

I say this because I don't see a real world situation where only the ajax implementation would change especially considering nothing else is abstracted out ( DOM & animation methods etc. ).

I therefore think it would be nice to have the ajax module simply handle global errors etc. and accept that it's using jQuery, in which case allow the options argument to be passed directly into the jQuery.ajax method.

Any thoughts?