Thanks.

I had look into that first link earlier but I had hoped that there
would be a simpler solution. Anyway, I tried using that code and even
though I am getting XML like: http://paste.pocoo.org/show/107174/ from
my XMLRPC server, the jquery selector is never satified and ret.result
is always undefined.

On Mon, Mar 9, 2009 at 1:53 PM, Karl Rudd <karl.r...@gmail.com> wrote:
>
> jQuery "consumes" JSON fairly well but you'd need a plugin/other
> functionality (like from json.org or that RPC plugin) to "produce"
> JSON.
>
> Karl Rudd
>
> On Tue, Mar 10, 2009 at 4:00 AM, Ritesh Nadhani <rite...@gmail.com> wrote:
>>
>> 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
>>
>



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

Reply via email to