On Apr 14, 9:34 pm, sneaks <deroacheee...@gmail.com> wrote:
> hi! i am trying to use jQuery.post() to send name/value to a php
> function which then retreives data from mysql and responds with JSON
> which looks like this when i append it directly to my debug output
> div:
>

[...]

> i have tried to iterate through the JSON using the jQuery.each():

You should provide a reduced testcase so that we can see the problem.
This should be a live example on your webhost, ideally (so we don't
have to copy all of your files to our own webserver).

When posting code, you should also format that code to wrap at <= 72
chars. Use spaces, not tabs. This makes it easier for us humans to
read.

Plain enumeration is simple. For example:-

var json = eval( responseText ),
     key, value;

for( key in json ) {
  value = json[key];
}

But you are using jQuery. So we'll try and figure out what is going
on.

>
> Query.each(obj, function(i, val) {
> etc...

Why don't you post up the whole function?

Garrett

Reply via email to