[jQuery] Re: Use JSON from .post

2008-10-29 Thread Rogers
You were correct. I discovered that javascript was expanding the json string into an object and when I packed the object back into another encoded string using $.toJSON(item) (an available plugin) it all worked as expected. I've been working long crazy hours, but I could swear that before w

[jQuery] Re: Use JSON from .post

2008-10-28 Thread joel boonstra
>  I have an object created using json_encode and via the console.log > entry as suggested, I can see that it is correct.   I have a backend > program that I'm wanting to pass this object to, so that it can do a > json_decode and then process that data.   When I try to pass the > object to it, usi

[jQuery] Re: Use JSON from .post

2008-10-27 Thread Rogers
This is closely related to the problem I am having. And the tip about console.log was great. However: I have an object created using json_encode and via the console.log entry as suggested, I can see that it is correct. I have a backend program that I'm wanting to pass this object to, so that

[jQuery] Re: Use JSON from .post

2008-10-26 Thread jfrymann
Thank you, that was exactly what I needed to know. Got it all working. Also, the tip about looking at the contents in Firebug is very useful. I have also just started using Firebug and am starting to discover all its useful features. On Oct 26, 9:37 am, "Michael Geary" <[EMAIL PROTECTED]> wrot

[jQuery] Re: Use JSON from .post

2008-10-26 Thread Michael Geary
The example PHP code would actually echo a series of JSON objects all concatenated together, each one having two properties named file and byline. You wouldn't get any kind of valid JSON out of this. It would look something like this (probably without the whitespace): { "file": something, "byline

[jQuery] Re: Use JSON from .post

2008-10-26 Thread Ariel Flesler
If you are indeed returning an array from PHP, then the received JSON should be a js array. Got this online ? -- Ariel Flesler http://flesler.blogspot.com/ On Oct 25, 6:26 pm, jfrymann <[EMAIL PROTECTED]> wrote: > Hi, >   I have just started using jQuery and am trying to get data back from > a m