[jQuery] Re: AJAX and JSON

2009-08-12 Thread Joey Derrico
Actually I am sending data to the server from a form so post is needed. But I do agree that normally get is teh better method if you don't need to send data to a server. Joey On Wed, Aug 12, 2009 at 2:27 PM, Michael Geary wrote: > > > > From: Michael Geary > > > Just use $.getJSON() or $.ajax()

[jQuery] Re: AJAX and JSON

2009-08-11 Thread Joey Derrico
Ok so I have used .ajax function to run my ajax and set type to data. It is getting (well posting) to a php file that echo's a json_encoded array. When it returns I am using console.log to display the returned data. when I just use data it shows the JSON encoded data, but if I use data.key I get un

[jQuery] AJAX and JSON

2009-08-10 Thread Joey Derrico
I am a novice at AJAX and JSON (Ok, I am a novice at JavaScript.), and I am brand new to jQuery. I wanted to use JSON in a project I am working on and I read various tutorials on using JSON with jQuery however none of them answered some of my questions. The biggest one is, does jQuery support JSON