I also added to the patch renaming the parameter 'xml' and sometimes 'r' to
'xhr'. I think it makes it easier to read.

http://jqueryjs.googlecode.com/svn/branches/jake-dev/src/ajax/ajax.js

On 6/7/07, Mike Alsup <[EMAIL PROTECTED]> wrote:

I like this patch.   Jörn? Brandon? John?  Anyone?


> alternate encoding done cleanly...
> http://jqueryjs.googlecode.com/svn/branches/jake-dev/src/ajax/ajax.js
>
> a small patch allows escape (or other) instead of encodeURIComponent
>
> while localizing all calls to encodeURIComponent
> this patch seems to make the packed size of jQuery even smaller.
>
> $.pair is used in param (serialize) and can easily be overriden.
>
> as in
> $.pair = function(f,v) {return escape(f) + "=" + escape(v)};
> $.ajax({
>     url: "/test.cgi",
>     data: {foo:'Jörn'},
>     success: function(){console.log(arguments)}
>     })




--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ

Reply via email to