Re: [jQuery] Simple ajax script

2007-01-26 Thread peidor
[EMAIL PROTECTED] wrote: > > On 1/22/07, Lorenzo Bolognini <[EMAIL PROTECTED]> wrote: > Fixed for cycle: > > for(i=0;i<10;i++) > { > var results = $('#results').val() + > $('#results').text(json[i].fields['city'] + ""); >

Re: [jQuery] Simple ajax script

2007-01-21 Thread limodou
On 1/22/07, Lorenzo Bolognini <[EMAIL PROTECTED]> wrote: > On 1/22/07, Matt Stith <[EMAIL PROTECTED]> wrote: > > getJSON eval's the results automatically, so theres no need to eval it > > yourself. > > Hi Matt, > > thanks for the advice, i've streamlined the script a bit but still > doesn't work...

Re: [jQuery] Simple ajax script

2007-01-21 Thread Lorenzo Bolognini
On 1/22/07, Lorenzo Bolognini <[EMAIL PROTECTED]> wrote: > On 1/22/07, Matt Stith <[EMAIL PROTECTED]> wrote: > > getJSON eval's the results automatically, so theres no need to eval it > > yourself. > > Hi Matt, > > thanks for the advice, i've streamlined the script a bit but still > doesn't work...

Re: [jQuery] Simple ajax script

2007-01-21 Thread Lorenzo Bolognini
On 1/22/07, Matt Stith <[EMAIL PROTECTED]> wrote: > getJSON eval's the results automatically, so theres no need to eval it > yourself. Hi Matt, thanks for the advice, i've streamlined the script a bit but still doesn't work... dunno why but i can't write to the document in the #results div Any i

Re: [jQuery] Simple ajax script

2007-01-21 Thread Matt Stith
getJSON eval's the results automatically, so theres no need to eval it yourself. On 1/21/07, Lorenzo Bolognini <[EMAIL PROTECTED]> wrote: Hi all, i'm trying to make the script below work. It gets the results serialized in json from django something like the dataset below. Unfortunately i can'

[jQuery] Simple ajax script

2007-01-21 Thread Lorenzo Bolognini
Hi all, i'm trying to make the script below work. It gets the results serialized in json from django something like the dataset below. Unfortunately i can't see anything displayed in the results div. I suspect the json is not returning properly from the function or maybe i made some gross mistake