Update on that idea, i took a look into some innards of the Range
object, it uses a succ method to find the next successive value
between the ranges. It was really easy to implement my idea of a date
range object, i just extended the Date.prototype to have a succ method
to increase by one day. That is certainly debatable but its exactly
what I need. Check it out
Date.prototype.succ = function(){
var ret = new Date(this.getTime());
ret.setDate(this.getDate() + 1);
return ret;
}
and then viola you should send two date objects to the $R function and
you get a great little enumerable to step through a series of date
objects!
On Sep 9, 3:17 pm, Matt Foster <[EMAIL PROTECTED]> wrote:
> I just had an idea, this is by no means a suggestion to the core API
> but... Wouldn't it be nice to have an extension of the Range class to
> handle a Range of Dates, that could certainly help the implementation
> of a date chooser!
>
> On Sep 9, 2:20 pm, Matt Foster <[EMAIL PROTECTED]> wrote:
>
> > Hey Brian,
>
> > What i meant by stay in the DOM was to say that i don't want to
> > access anything higher than the document object. pop ups have been a
> > very common red flag for me in my quest for the right datechooser.
> > I'll have to take another look at your example, and see how to
> > customize.
>
> > On Sep 7, 5:15 pm, "Brian Williams" <[EMAIL PROTECTED]> wrote:
>
> > > at the risk of sounding like a total newb i'm not sure what you mean by
> > > "stay in the same DOM"
>
> > > if you looked at more than the first example you'll see that not all of
> > > them
> > > create popup windows.
>
> > > On 9/7/07, Matt Foster <[EMAIL PROTECTED]> wrote:
>
> > > > Hey Guys,
>
> > > > These are great suggestions and right in line with what I asked
> > > > for, unfortunately Brian's uses a window pop out and i really want to
> > > > stay in the same DOM, and Ken's is an extension of the dynarch
> > > > calendar which very well could be the heaviest implementation I've
> > > > seen. Thanks again guys but I think i'll have to look closer.
>
> > > > Cheers,
> > > > Matt
>
> > > > On Sep 7, 2:09 pm, "Brian Williams" <[EMAIL PROTECTED]> wrote:
> > > > > that one looks nice i'll have to give it a shot
>
> > > > > currently using
>
> > > > >http://www.mattkruse.com/javascript/calendarpopup/
>
> > > > > On 9/7/07, Ken Snyder <[EMAIL PROTECTED]> wrote:
>
> > > > > > Matt Foster wrote:
> > > > > > > Hey Guys,
>
> > > > > > > I am looking for a good datechooser that works with
> > > > > > > prototype....
> > > > > > Have you looked athttp://datetime.toolbocks.com/?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---