function setStateForItem(item)
{
new_item = rand +1;
if(new_item >(arrayLaenge)){new_item=0;};
muller(new_item);
};

This function does not know what 'arrayLaenge' is because its not
defined within or passed to the function.  You also never use 'item'
in the function.  'rand' is not defined either.  If those are defined
elsewhere you need to pass them to the function as well.  Basically,
you have a scope problem.

On Oct 30, 1:30 pm, hamburger <[email protected]> wrote:
> hello,
> everything with jason works fine now.
> only the function setStateForItem(item) to scroll to next gives the
> error:undefined.
> can somebody have a quick look?
> thx
>
> On 30 Okt., 20:45, hamburger <[email protected]> wrote:
>
> > Hello, I think i do not have a jason problem.
> > I'am would like to read the hole file witch is provided by kiva.org
> > this part works!
> > I'am a newbe and have problems with the syntax and sometimes with the
> > object-oriented-stuff.
>
> > do i find the Mooshell's built-in 'JSON echo' here:http://mooshell.net/json/
> > ???
> > I have the same error here.
> > thx for your fast answer
>
> > On 30 Okt., 20:27, Sanford Whiteman <[email protected]>
> > wrote:
>
> > > > but i get an access error i dont have it with my browser
>
> > > B/c of the same-origin security policy.
>
> > > Use  Mooshell's built-in 'JSON echo' feature to simulate XHR response.
> > > There is a demo on the site.
>
> > > -- Sandy- Zitierten Text ausblenden -
>
> > - Zitierten Text anzeigen -

Reply via email to