Thanks, Walter!  That really did the trick.

On Jul 8, 7:10 am, Walter Lee Davis <[EMAIL PROTECTED]> wrote:
> Try using a different for loop, maybe for(i = 0; i < tabs.length; i++).
> Therehasbeen a ton of discussion on this list lately that for .. in
> loops are specific to objects, and using them on arrays is just wrong.
> You might have better luck with a different format for your loop.
>
> Walter
>
> On Jul 8, 2007, at 8:03 AM, Judson wrote:
>
>
>
> > When I call the script below with prototype.js included in the page, I
> > get a "targethasnoproperties" error message.  If I take out
> > prototype, it works fine.  Can anyone explain this?
>
> > [snip]
> >       tabs[5] = "five"
> >         for (x in tabs)
> >            {


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to