I don't believe that's a legit method of transmitting data via AJAX.

The API docs say that if you pass an array to a value then it will
concatenate:

a: ['one','two'];

Amounts to ?a=one&a=two

-----Original Message-----
From: Rick Faircloth [mailto:r...@whitestonemedia.com] 
Sent: Thursday, April 29, 2010 2:43 PM
To: cf-talk
Subject: RE: jquery $.ajax - need help with json syntax


Ok...you lost me.

Now, what exactly does the 'a': {"a":a.cat,"b":a.dog,"c"} do?  An array for
"a" ???

Rick

-----Original Message-----
From: Tony Bentley [mailto:cascadefreehee...@gmail.com]
Sent: Thursday, April 29, 2010 1:27 PM
To: cf-talk
Subject: Re: jquery $.ajax - need help with json syntax


Okay I figured it out:


        var data = {
                'a': {"a":a.cat,"b":a.dog,"c":a.etc},
                'b': b,
                'c': c,
                'd': d
        };

Thanks everyone for the help. It helped me out quite a bit.






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333268
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to