$R(1,31).each(function(i){
   console.log(i); // if you have firebug.
});





On Mon, Apr 6, 2009 at 3:51 AM, T.J. Crowder <t...@crowdersoftware.com> wrote:
>
> Hi,
>
> Why are you calling $?  $[1] is for extending elements or looking
> elements up by ID, it has nothing to do with ObjectRanges.  The types
> it's documented to accept are String (when looking up by ID) and
> Element (when extending an element).  If you just use days.each, I
> would expect it to work, since ObjectRange mixes in Enumerable.
>
> [1] http://prototypejs.org/api/utility/dollar
>
> HTH,
> --
> T.J. Crowder
> tj / crowder software / com
> Independent Software Engineer, consulting services available
>
> On Apr 5, 11:18 pm, CeyloR <w.at...@gmail.com> wrote:
>> Hello,
>>
>> I'm using .each to iterate over an array. This works fine and without
>> errors in Firefox but in Internet Explorer I get an error saying the
>> object doesn't support that method. Is this a known isue?
>>
>> This is the code I use :
>>
>> days = $R(1,31);
>> $(days).each(function(i){
>>     //some work to do for each day
>>
>> });
>>
>> kind regards
>>
>> Ceylor
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to