Aha.

And I though I was doing something wrong. That clears up lot of things.

PS: Does jQuery has better support for json? I can modify my XML-RPC
to JSON-RPC.

On Sun, Mar 8, 2009 at 9:44 PM, Karl Rudd <karl.r...@gmail.com> wrote:
>
> jQuery doesn't include XML serialisation in it's core. A quick search
> of the plugins repository came up with two projects that might help
> (there may be more):
>
> RPC
> http://plugins.jquery.com/project/rpc
> The is rpc(remote procedure call) client implementation based on
> JQuery. It creates an rpc object and adds ability to call them. It
> supports both xml and json rpc...
>
> XML
> http://plugins.jquery.com/project/xml
> Methods to generate XML/HTML tags programmatically. By default, they
> output XHTML compliant tags.
>
> Karl Rudd
>
> On Mon, Mar 9, 2009 at 1:18 PM, riteshn <rite...@gmail.com> wrote:
>>
>> Hi
>>
>> So my first time using jQuery.
>>
>> http://paste.pocoo.org/show/107037/
>>
>> I have a simple django based xml-rpc server which works perfect when I
>> test it with my python based XML-rpc client.
>>
>> I am always getting error when sending data using jQuery.
>>
>> When I set processData: true - the server is getting value as:
>>
>> var1=val1&var2=val2
>>
>> as a  consequence of which my dispatcher in the server side fails with
>> XML parsing error.
>>
>> If I set processData: false, then POST content is just ''.
>>
>> Looks like jquery is not serializing the data to XML. I did lot of
>> Googling (maybe I didnt do enough) and nowhere I found a similar
>> error. Though it threw up: http://drupalbin.com/1173 which is doing
>> the serializing by itself. I am doubtful if this is required.
>>
>> Thoughts?
>>
>



-- 
Ritesh
http://www.riteshn.com

Reply via email to