[jQuery] Re: processData:false in ajax calls?

2007-06-06 Thread Jörn Zaefferer
Ⓙⓐⓚⓔ wrote: I'm a bit confused about processData parameter in the ajax call. From the doc it talks about sending a dom node to the server, that sounds pretty strange. What is it used for? From the code it looks like a perfect hook to send non utf-8 data (iso-8859-1). Has anyone used

[jQuery] Re: processData:false in ajax calls?

2007-06-06 Thread Ⓙⓐⓚⓔ
has anyone used it to send an xml doc??? That's what the doc says... I guess I'll just have to try it! On 6/6/07, Jörn Zaefferer [EMAIL PROTECTED] wrote: Ⓙⓐⓚⓔ wrote: I'm a bit confused about processData parameter in the ajax call. From the doc it talks about sending a dom node to the

[jQuery] Re: processData:false in ajax calls?

2007-06-06 Thread Ⓙⓐⓚⓔ
I trie $.ajax({ url: /test.cgi, processData: false, data: $('html'), success: function(){console.log(arguments)} }) and data: $(html)[0] both might be what John meant by xml ... no magic

[jQuery] Re: processData:false in ajax calls?

2007-06-06 Thread Mike Alsup
All the encoding is done in $.param using encodeURIComponent. I agree that it makes sense to modularize that a bit more. Maybe add a $.encode method like: $.encode = function(s) { return encodeURIComponent(s) }; That would make it much easier for someone to pop in their own encoder by simply

[jQuery] Re: processData:false in ajax calls?

2007-06-06 Thread Ⓙⓐⓚⓔ
very sweet! On 6/6/07, Mike Alsup [EMAIL PROTECTED] wrote: All the encoding is done in $.param using encodeURIComponent. I agree that it makes sense to modularize that a bit more. Maybe add a $.encode method like: $.encode = function(s) { return encodeURIComponent(s) }; That would make it

[jQuery] Re: processData:false in ajax calls?

2007-06-06 Thread Erik Beeson
You can already do that now: encodeURIComponent = function(s) { // your own encoding }; But, you know, good luck with that :) --Erik On 6/6/07, Mike Alsup [EMAIL PROTECTED] wrote: All the encoding is done in $.param using encodeURIComponent. I agree that it makes sense to modularize that

[jQuery] Re: processData:false in ajax calls?

2007-06-06 Thread Ⓙⓐⓚⓔ
I guess so... but it seems very scary! On 6/6/07, Erik Beeson [EMAIL PROTECTED] wrote: You can already do that now: encodeURIComponent = function(s) { // your own encoding }; But, you know, good luck with that :) --Erik On 6/6/07, Mike Alsup [EMAIL PROTECTED] wrote: All the encoding is