[jQuery] Re: datePicker v2 beta

2007-06-07 Thread Kelvin Luck


Rob Desbois wrote:
I disagree; in the interest of keeping the plugin small, to do this 
outside the class is equally minimal effort and I don't think the plugin 
should accept every possible representation. If you always use Date 
where String is required, you can overload and wrap the function to 
perform the conversion.




I agree :)


Kelvin:
That said I think that given it's a *date*Picker, Date would be a far 
more appropriate choice for the interface than String. What made you 
choose String?


In this instance I chose date to be consistent with dpSetStartDate and 
dpSetEndDate. I'm not 100% sure why I originally chose strings for those 
method's arguments... One possible reasons is because a string contains 
only date information (no time information). When I convert it to a Date 
object I convert it to midnight of that day and this is the specific 
date/time that is used for all comparisons. If you passed in a Date 
object I would need to .zeroTime it to make sure all the comparisons 
worked and avoid any possibly hard to track down bugs... Possibly not 
the best reason in the world, I'm open to suggestions if people feel 
there is a good reason to change it...


Thanks for the feedback,

Kelvin :)



--rob

On 6/6/07, *Brian Miller* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
wrote:



Just my opinion: both Date and String should be supported.  It's
probably
only two lines of code to check for type, and cast to the other type if
necessary.

- Brian



[jQuery] Re: datePicker v2 beta

2007-06-06 Thread Rob Desbois

A tricky one...or perhaps not.
My feeling is that the datePicker is there to replace not enhance the input
field.

I'm not overly pleased with the blur() method as it breaks tabbing between
fields.
I didn't know that autocomplete could be suppressed (thank you!), but I
think that would be the most elegant solution.

--rob

On 6/6/07, Kelvin Luck [EMAIL PROTECTED] wrote:



Rob Desbois wrote:
 I've had an issue in Firefox2.0 using the plugin with the 'clickInput'
 option turned on.

 When the input field has the focus, clicking on it to display the
 datePicker will work, but over the top of that will be Firefox's
 drop-down box showing previous inputs to that field.

 The solution I've used is to do this:

 $(#dateFrom)
.datePicker(dpOptions)
.click(function() {
   this.blur();
});


 Don't know if anyone else has a better suggestion?
 Not sure if it would be appropriate to make this default behaviour for
 the plugin but it's there as a suggestion anyway :-)

 --rob

Hi,

I think that it might make sense to make the plugin disable autocomplete
  (set autocomplete=off on the input element) where clickInput = true...

Do you think this would make sense? Then again, what about if a user
tabs into the field and you want them to be able to autocomplete? If
this is a consideration then maybe your suggestion is most elegant (and
I can add the blur into the plugin). Does anyone have any suggestions on
this?

Cheers,

Kelvin :)





--
Rob Desbois
Eml: [EMAIL PROTECTED]
Tel: 01452 760631
Mob: 07946 705987
There's a whale there's a whale there's a whale fish he cried, and the
whale was in full view.
...Then ooh welcome. Ahhh. Ooh mug welcome.


[jQuery] Re: datePicker v2 beta

2007-06-06 Thread Brian Miller

Just my opinion: both Date and String should be supported.  It's probably
only two lines of code to check for type, and cast to the other type if
necessary.

- Brian


 There's a bug or documentation error with dpSetSelected() [revision
 #1993] : it's documented as taking a string, but the code for it
 requires a Date (due to using .getMonth(), .getFullYear() and
 .getTime()).

 To fix this problem I added the line  d = new Date(d);  to the start
 of dpSetSelected().

 It's a documentation error. I'll update the documentation to explain
 that it expects a Date object (the change you made might have other
 unforseen consequences).


 Hi,

 Just an update on this... I've decided that the documentation was
 correct and so I've changed the function to behave as it described.
 dpSetSelected now expects a String as documented. I also fixed the other
 documentation errors you noticed,

 Sorry for any confusion and thanks for the report,

 Kelvin :)




[jQuery] Re: datePicker v2 beta

2007-06-06 Thread Rob Desbois

I disagree; in the interest of keeping the plugin small, to do this outside
the class is equally minimal effort and I don't think the plugin should
accept every possible representation. If you always use Date where String is
required, you can overload and wrap the function to perform the conversion.

Kelvin:
That said I think that given it's a *date*Picker, Date would be a far more
appropriate choice for the interface than String. What made you choose
String?

--rob

On 6/6/07, Brian Miller [EMAIL PROTECTED] wrote:



Just my opinion: both Date and String should be supported.  It's probably
only two lines of code to check for type, and cast to the other type if
necessary.

- Brian


 There's a bug or documentation error with dpSetSelected() [revision
 #1993] : it's documented as taking a string, but the code for it
 requires a Date (due to using .getMonth(), .getFullYear() and
 .getTime()).

 To fix this problem I added the line  d = new Date(d);  to the start
 of dpSetSelected().

 It's a documentation error. I'll update the documentation to explain
 that it expects a Date object (the change you made might have other
 unforseen consequences).


 Hi,

 Just an update on this... I've decided that the documentation was
 correct and so I've changed the function to behave as it described.
 dpSetSelected now expects a String as documented. I also fixed the other
 documentation errors you noticed,

 Sorry for any confusion and thanks for the report,

 Kelvin :)






--
Rob Desbois
Eml: [EMAIL PROTECTED]
Tel: 01452 760631
Mob: 07946 705987
There's a whale there's a whale there's a whale fish he cried, and the
whale was in full view.
...Then ooh welcome. Ahhh. Ooh mug welcome.


[jQuery] Re: datePicker v2 beta

2007-06-05 Thread Kelvin Luck


There's a bug or documentation error with dpSetSelected() [revision 
#1993] : it's documented as taking a string, but the code for it 
requires a Date (due to using .getMonth(), .getFullYear() and 
.getTime()).


To fix this problem I added the line  d = new Date(d);  to the start 
of dpSetSelected().


It's a documentation error. I'll update the documentation to explain 
that it expects a Date object (the change you made might have other 
unforseen consequences).




Hi,

Just an update on this... I've decided that the documentation was 
correct and so I've changed the function to behave as it described. 
dpSetSelected now expects a String as documented. I also fixed the other 
documentation errors you noticed,


Sorry for any confusion and thanks for the report,

Kelvin :)


[jQuery] Re: datePicker v2 beta

2007-06-05 Thread Kelvin Luck


Rob Desbois wrote:
I've had an issue in Firefox2.0 using the plugin with the 'clickInput' 
option turned on.


When the input field has the focus, clicking on it to display the 
datePicker will work, but over the top of that will be Firefox's 
drop-down box showing previous inputs to that field.


The solution I've used is to do this:

$(#dateFrom)
   .datePicker(dpOptions)
   .click(function() {
  this.blur();
   });


Don't know if anyone else has a better suggestion?
Not sure if it would be appropriate to make this default behaviour for 
the plugin but it's there as a suggestion anyway :-)


--rob


Hi,

I think that it might make sense to make the plugin disable autocomplete 
 (set autocomplete=off on the input element) where clickInput = true...


Do you think this would make sense? Then again, what about if a user 
tabs into the field and you want them to be able to autocomplete? If 
this is a consideration then maybe your suggestion is most elegant (and 
I can add the blur into the plugin). Does anyone have any suggestions on 
this?


Cheers,

Kelvin :)


[jQuery] Re: datePicker v2 beta

2007-06-04 Thread Rob Desbois

I've had an issue in Firefox2.0 using the plugin with the 'clickInput'
option turned on.

When the input field has the focus, clicking on it to display the datePicker
will work, but over the top of that will be Firefox's drop-down box showing
previous inputs to that field.

The solution I've used is to do this:


$(#dateFrom)
   .datePicker(dpOptions)
   .click(function() {
  this.blur();
   });



Don't know if anyone else has a better suggestion?
Not sure if it would be appropriate to make this default behaviour for the
plugin but it's there as a suggestion anyway :-)

--rob



On 6/1/07, Chris W. Parker [EMAIL PROTECTED] wrote:



On Friday, June 01, 2007 1:11 PM gee  said:

 E.g., instead of:

 Start date: [text input] [.png]

 The display appears as:

 Start date:
 [text input][.png]

 I gather it has something to do with using a float in the style
 declaration for a.dp-choose-date. Before I wade into experimenting
 with alternate style declarations, I am wondering if anyone else has
 already come up with a different markup that allows a label, text
 input, and date selector button to appear on the same line.

I figured it out... :)

In my case the solution was already stated on the demo page. :(

You need to take the styles a.dp-choose-date,
a.dp-choose-date.dp-disabled, and input.dp-applied from demo.css (or
copied from the bottom of his demo page) into your datePicker.css file.

You can keep the files separate but I prefer to keep all the datePicker
styles in one file since I always use the icon.



Hope this helps!
Chris.





--
Rob Desbois
Eml: [EMAIL PROTECTED]
Tel: 01452 760631
Mob: 07946 705987
There's a whale there's a whale there's a whale fish he cried, and the
whale was in full view.
...Then ooh welcome. Ahhh. Ooh mug welcome.


[jQuery] Re: datePicker v2 beta

2007-06-01 Thread Rob Desbois

Well, I've finally taken the plunge and started playing with datePicker.
Can I join everyone in thanking you for this excellent plugin.

Suggestions for a few changes, mainly ones which increased the time it took
for me to integrate it into a page without hacking the source:

== Change the clickInput option to be clickElement instead ==
I wanted to use span as my datePicker element to prevent manual editing:
forcing the use of a text input means making it disabled and re-enabling it
on form submission, or using javascript to prevent modification.

== Change the a created with createButton:true ==
I like the automatic creation of the a but dislike the default content
being text and the image being background: it means either CSS is required
to hide the content or JS to remove the content and CSS to display properly.
I've had to resort to adding my own a in the HTML and setting its
behaviour myself:

a href=javascript:choose_date('dateFrom')

   img src=/images/calendar.gif alt=[choose date] /
/a



My suggestion would be to allow the content of the a to be set in the
options if desired.

Also, is there a particular reason why $.dpDisplay() returns a value? It
means that to use it from the href of an a it has to be wrapped in another
function call returning nothing to prevent the browser from navigating away
when it's called from the href.

Just as an aside: the first sentence of documentation of dpSetOffset() on
http://kelvinluck.com/assets/jquery/datePicker/v2/demo/documentation.html is
from the dpDisplay() function instead.

Is datePicker v2 still considered to be in beta?

Apologies for length, and many thanks for this damn good piece of kit :-)
--rob


On 5/21/07, tlphipps [EMAIL PROTECTED] wrote:



Awesome!  The packing and the hovering work great!  Thanks for the
amazing support.

On May 20, 2:17 pm, Kelvin Luck [EMAIL PROTECTED] wrote:
 Hi,

 I've added support for this into the date picker:
http://dev.jquery.com/changeset/1933#file2

 As you can see, you can now pass a hoverClass to $().datePicker or
 $().renderCalendar which is added to each TD of the calendar as you
 hover over it. This defaults to dp-hover. You can also pass false if you
 don't want any class added to the TDs.

 Hope that helps,

 Kelvin :)

 tlphipps wrote:
  Another issue I've uncovered is related to the :hover effects.  In
  your original date picker you were obviously using as because the
  hover effect worked correctly in IE.  However, hovering doesn't work
  in v2 because of IE's quirkiness.

  Anybody have any input on how to get the :hover effect back in IE with
  v2?





--
Rob Desbois
Eml: [EMAIL PROTECTED]
Tel: 01452 760631
Mob: 07946 705987
There's a whale there's a whale there's a whale fish he cried, and the
whale was in full view.
...Then ooh welcome. Ahhh. Ooh mug welcome.


[jQuery] Re: datePicker v2 beta

2007-06-01 Thread Rob Desbois

Also, dpSetPosition() has the wrong first sentence too.

There's a bug or documentation error with dpSetSelected() [revision #1993] :
it's documented as taking a string, but the code for it requires a Date (due
to using .getMonth(), .getFullYear() and .getTime()).

To fix this problem I added the line  d = new Date(d);  to the start of
dpSetSelected().

--rob


On 6/1/07, Rob Desbois [EMAIL PROTECTED] wrote:


Well, I've finally taken the plunge and started playing with datePicker.
Can I join everyone in thanking you for this excellent plugin.

Suggestions for a few changes, mainly ones which increased the time it
took for me to integrate it into a page without hacking the source:

== Change the clickInput option to be clickElement instead ==
I wanted to use span as my datePicker element to prevent manual editing:
forcing the use of a text input means making it disabled and re-enabling it
on form submission, or using javascript to prevent modification.

== Change the a created with createButton:true ==
I like the automatic creation of the a but dislike the default content
being text and the image being background: it means either CSS is required
to hide the content or JS to remove the content and CSS to display properly.
I've had to resort to adding my own a in the HTML and setting its
behaviour myself:

a href=javascript:choose_date('dateFrom')
img src=/images/calendar.gif alt=[choose date] /
 /a


My suggestion would be to allow the content of the a to be set in the
options if desired.

Also, is there a particular reason why $.dpDisplay() returns a value? It
means that to use it from the href of an a it has to be wrapped in another
function call returning nothing to prevent the browser from navigating away
when it's called from the href.

Just as an aside: the first sentence of documentation of dpSetOffset() on 
http://kelvinluck.com/assets/jquery/datePicker/v2/demo/documentation.html
is from the dpDisplay() function instead.

Is datePicker v2 still considered to be in beta?

Apologies for length, and many thanks for this damn good piece of kit :-)
--rob


On 5/21/07, tlphipps [EMAIL PROTECTED] wrote:


 Awesome!  The packing and the hovering work great!  Thanks for the
 amazing support.

 On May 20, 2:17 pm, Kelvin Luck [EMAIL PROTECTED] wrote:
  Hi,
 
  I've added support for this into the date picker:
 http://dev.jquery.com/changeset/1933#file2
 
  As you can see, you can now pass a hoverClass to $().datePicker or
  $().renderCalendar which is added to each TD of the calendar as you
  hover over it. This defaults to dp-hover. You can also pass false if
 you
  don't want any class added to the TDs.
 
  Hope that helps,
 
  Kelvin :)
 
  tlphipps wrote:
   Another issue I've uncovered is related to the :hover effects.  In
   your original date picker you were obviously using as because the
   hover effect worked correctly in IE.  However, hovering doesn't work
   in v2 because of IE's quirkiness.
 
   Anybody have any input on how to get the :hover effect back in IE
 with
   v2?




--
Rob Desbois
Eml: [EMAIL PROTECTED]
Tel: 01452 760631
Mob: 07946 705987
There's a whale there's a whale there's a whale fish he cried, and the
whale was in full view.
...Then ooh welcome. Ahhh. Ooh mug welcome.





--
Rob Desbois
Eml: [EMAIL PROTECTED]
Tel: 01452 760631
Mob: 07946 705987
There's a whale there's a whale there's a whale fish he cried, and the
whale was in full view.
...Then ooh welcome. Ahhh. Ooh mug welcome.


[jQuery] Re: datePicker v2 beta

2007-06-01 Thread Kelvin Luck


Hello again!

Rob Desbois wrote:

Also, dpSetPosition() has the wrong first sentence too.


Thanks - I'll fix that too.



There's a bug or documentation error with dpSetSelected() [revision 
#1993] : it's documented as taking a string, but the code for it 
requires a Date (due to using .getMonth(), .getFullYear() and .getTime()).


To fix this problem I added the line  d = new Date(d);  to the start of 
dpSetSelected().


It's a documentation error. I'll update the documentation to explain 
that it expects a Date object (the change you made might have other 
unforseen consequences).


Thanks for tracking down those problems,

Cheers,

Kelvin :)


[jQuery] Re: datePicker v2 beta

2007-06-01 Thread gee

(I clumsily posted this as a new topic yesterday (http://
groups.google.com/group/jquery-en/browse_thread/thread/
b8471b7990296b12?hl=en); I am reposting it here -- hopefully in the
correct thread -- with advance apologies for the clutter.)

Great work!

An issue I have experienced with both the original datePicker and v2
involves the date's text input field breaking to a new line when
using a button to trigger datePicker instead of the Choose date
text.

E.g., instead of:

Start date: [text input] [.png]

The display appears as:

Start date:
[text input][.png]

I gather it has something to do with using a float in the style
declaration for a.dp-choose-date. Before I wade into experimenting
with alternate style declarations, I am wondering if anyone else has
already come up with a different markup that allows a label, text
input, and date selector button to appear on the same line.



[jQuery] Re: datePicker v2 beta

2007-06-01 Thread Chris W. Parker

On Friday, June 01, 2007 1:11 PM gee  said:

 E.g., instead of:
 
 Start date: [text input] [.png]
 
 The display appears as:
 
 Start date:
 [text input][.png]
 
 I gather it has something to do with using a float in the style
 declaration for a.dp-choose-date. Before I wade into experimenting
 with alternate style declarations, I am wondering if anyone else has
 already come up with a different markup that allows a label, text
 input, and date selector button to appear on the same line.

I figured it out... :)

In my case the solution was already stated on the demo page. :(

You need to take the styles a.dp-choose-date,
a.dp-choose-date.dp-disabled, and input.dp-applied from demo.css (or
copied from the bottom of his demo page) into your datePicker.css file.

You can keep the files separate but I prefer to keep all the datePicker
styles in one file since I always use the icon.



Hope this helps!
Chris.


[jQuery] Re: datePicker v2 beta

2007-05-21 Thread pd

Is there any particular reason why your plugin doesn't have an option
for specifying time as well as date?

I'd like to use this plugin but need time functionality.

On Apr 24, 7:54 pm, Kelvin Luck [EMAIL PROTECTED] wrote:
 Hi,

 I'd like to announce the beta release of v2 of my datePicker plugin for 
 jQuery. This release is a complete rewrite which makes the date picker 
 considerably more powerful and flexible than it previously was. Check out the 
 temporary project page:

 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/

 Note, this is currently in beta and may be a little rough around the edges 
 but I'd love to get some feedback. I've tested in FF2, IE6 and Opera 9 but it 
 would be good to know if it works in other browsers (particulaly Safari). 
 Plus any other feedback on extra stuff you'd like adding or bugs you discover,

 Cheers,

 Kelvin :)



[jQuery] Re: datePicker v2 beta

2007-05-21 Thread sithram

Hi Kelvin,

The evolution is wondelful!
It's a great and useful plugin. Thanks for your job!

Xavier

On Apr 24, 11:54 am, Kelvin Luck [EMAIL PROTECTED] wrote:
 Hi,

 I'd like to announce the beta release of v2 of my datePicker plugin for 
 jQuery. This release is a complete rewrite which makes the date picker 
 considerably more powerful and flexible than it previously was. Check out the 
 temporary project page:

 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/

 Note, this is currently in beta and may be a little rough around the edges 
 but I'd love to get some feedback. I've tested in FF2, IE6 and Opera 9 but it 
 would be good to know if it works in other browsers (particulaly Safari). 
 Plus any other feedback on extra stuff you'd like adding or bugs you discover,

 Cheers,

 Kelvin :)



[jQuery] Re: datePicker v2 beta

2007-05-21 Thread Kelvin Luck


pd wrote:

Is there any particular reason why your plugin doesn't have an option
for specifying time as well as date?

I'd like to use this plugin but need time functionality.



Because I'd like to keep the plugin as light weight as possible (it's 
already bigger than it should ideally be) and personally I have never 
had the need for a time/date selector while I have needed a date 
selector many times... Sam Collett was working on a time picker a while 
back - maybe you can use the two plugins together?


http://www.texotela.co.uk/code/jquery/timepicker/

Hope that helps,

Kelvin :)


[jQuery] Re: datePicker v2 beta

2007-05-20 Thread Ⓙⓐⓚⓔ

Kelvin, I thought packer only needed the final ; ... do you know the rules?
is it as simple as making it work if you remove all linefeeds?


On 5/20/07, Kelvin Luck [EMAIL PROTECTED] wrote:



tlphipps wrote:
 Sorry, one more thing.  I can't get a clean compressed/packed version
 of v2.  Has anybody else had any luck packing this?

Hi,

I've just added some missing semicolons to the date picker sourcecode so
that you can now pack it successfully with Dean Edwards' Packer,

Cheers,

Kelvin :)





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[jQuery] Re: datePicker v2 beta

2007-05-20 Thread Kelvin Luck


Hi Jake,

I think it needs them in any situation where a linebreak is being used 
to indicate the end of an expression (as when the linebreaks are removed 
this implicit end of expression is lost). You can see the changes I had 
to make to get it to work with packer here:


http://dev.jquery.com/changeset/1931

Cheers,

Kelvin :)

Ⓙⓐⓚⓔ wrote:
Kelvin, I thought packer only needed the final ; ... do you know the 
rules? is it as simple as making it work if you remove all linefeeds?



On 5/20/07, *Kelvin Luck * [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:



tlphipps wrote:
  Sorry, one more thing.  I can't get a clean compressed/packed version
  of v2.  Has anybody else had any luck packing this?
 
Hi,

I've just added some missing semicolons to the date picker
sourcecode so
that you can now pack it successfully with Dean Edwards' Packer,

Cheers,

Kelvin :)




--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[jQuery] Re: datePicker v2 beta

2007-05-20 Thread Ⓙⓐⓚⓔ

thanks! I thought semis were just required when removing linebreaks wouldn't
work... I searched the 'net for a definitive rule, I just found the regular
work-arounds, (semis all over).

I'm prepping some code to be packed. Do I have to cat it together with the
jquery-lite first? can I pack a file on it's own?

On 5/20/07, Kelvin Luck [EMAIL PROTECTED] wrote:



Hi Jake,

I think it needs them in any situation where a linebreak is being used
to indicate the end of an expression (as when the linebreaks are removed
this implicit end of expression is lost). You can see the changes I had
to make to get it to work with packer here:

http://dev.jquery.com/changeset/1931

Cheers,

Kelvin :)

Ⓙⓐⓚⓔ wrote:
 Kelvin, I thought packer only needed the final ; ... do you know the
 rules? is it as simple as making it work if you remove all linefeeds?


 On 5/20/07, *Kelvin Luck * [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:


 tlphipps wrote:
   Sorry, one more thing.  I can't get a clean compressed/packed
version
   of v2.  Has anybody else had any luck packing this?
  
 Hi,

 I've just added some missing semicolons to the date picker
 sourcecode so
 that you can now pack it successfully with Dean Edwards' Packer,

 Cheers,

 Kelvin :)




 --
 Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[jQuery] Re: datePicker v2 beta

2007-05-20 Thread Kelvin Luck


Hi,

I've added support for this into the date picker:
http://dev.jquery.com/changeset/1933#file2

As you can see, you can now pass a hoverClass to $().datePicker or 
$().renderCalendar which is added to each TD of the calendar as you 
hover over it. This defaults to dp-hover. You can also pass false if you 
don't want any class added to the TDs.


Hope that helps,

Kelvin :)

tlphipps wrote:

Another issue I've uncovered is related to the :hover effects.  In
your original date picker you were obviously using as because the
hover effect worked correctly in IE.  However, hovering doesn't work
in v2 because of IE's quirkiness.

Anybody have any input on how to get the :hover effect back in IE with
v2?



[jQuery] Re: datePicker v2 beta

2007-05-18 Thread tlphipps

Another issue I've uncovered is related to the :hover effects.  In
your original date picker you were obviously using as because the
hover effect worked correctly in IE.  However, hovering doesn't work
in v2 because of IE's quirkiness.

Anybody have any input on how to get the :hover effect back in IE with
v2?

On May 8, 6:46 pm, Will [EMAIL PROTECTED] wrote:
 Overall, I think the new date picker and jquery are really awesome!

 I do have one comment though.  I find the date parsing logic a little
 too strict.  If I use format mm/dd/ and I type in 5/1/2007, it's
 not going to parse correctly (code in date.js:440).  This causes the
 calendar to not refresh correctly and it's somewhat confusing to the
 user.  Is there any way to get around that?

 Will

 On Apr 24, 4:54 am, Kelvin Luck [EMAIL PROTECTED] wrote:

  Hi,

  I'd like to announce the beta release ofv2of mydatePickerplugin for jQuery. 
  This release is a complete rewrite which makes the date picker considerably 
  more powerful and flexible than it previously was. Check out the temporary 
  project page:

 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/

  Note, this is currently in beta and may be a little rough around the edges 
  but I'd love to get some feedback. I've tested in FF2, IE6 and Opera 9 but 
  it would be good to know if it works in other browsers (particulaly 
  Safari). Plus any other feedback on extra stuff you'd like adding or bugs 
  you discover,

  Cheers,

  Kelvin :)



[jQuery] Re: datePicker v2 beta

2007-05-18 Thread tlphipps

Sorry, one more thing.  I can't get a clean compressed/packed version
of v2.  Has anybody else had any luck packing this?

On May 8, 6:46 pm, Will [EMAIL PROTECTED] wrote:
 Overall, I think the new date picker and jquery are really awesome!

 I do have one comment though.  I find the date parsing logic a little
 too strict.  If I use format mm/dd/ and I type in 5/1/2007, it's
 not going to parse correctly (code in date.js:440).  This causes the
 calendar to not refresh correctly and it's somewhat confusing to the
 user.  Is there any way to get around that?

 Will

 On Apr 24, 4:54 am, Kelvin Luck [EMAIL PROTECTED] wrote:

  Hi,

  I'd like to announce the beta release ofv2of mydatePickerplugin for jQuery. 
  This release is a complete rewrite which makes the date picker considerably 
  more powerful and flexible than it previously was. Check out the temporary 
  project page:

 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/

  Note, this is currently in beta and may be a little rough around the edges 
  but I'd love to get some feedback. I've tested in FF2, IE6 and Opera 9 but 
  it would be good to know if it works in other browsers (particulaly 
  Safari). Plus any other feedback on extra stuff you'd like adding or bugs 
  you discover,

  Cheers,

  Kelvin :)



[jQuery] Re: datePicker v2 beta

2007-05-18 Thread tlphipps

Thanks Karl.  I've come up with code that will do what I need based on
your link, but I can't figure out where it needs to be placed in the
datepicker code in order to fire at the correct time (when the
calendar pops up).

On May 18, 12:38 pm, Karl Swedberg [EMAIL PROTECTED] wrote:
 On May 18, 2007, at 1:09 PM, tlphipps wrote:

  Anybody have any input on how to get the :hover effect back in IE with
  v2?

 Not sure about the datePicker v2 in particular, but this blog entry
 discusses the the topic in more general terms:

 http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-
 anything

 --Karl
 _
 Karl Swedbergwww.englishrules.comwww.learningjquery.com



[jQuery] Re: datePicker v2 beta

2007-05-18 Thread Karl Swedberg



On May 18, 2007, at 1:09 PM, tlphipps wrote:


Anybody have any input on how to get the :hover effect back in IE with
v2?


Not sure about the datePicker v2 in particular, but this blog entry  
discusses the the topic in more general terms:


http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for- 
anything


--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com




[jQuery] Re: datePicker v2 beta

2007-05-08 Thread Will

Overall, I think the new date picker and jquery are really awesome!

I do have one comment though.  I find the date parsing logic a little
too strict.  If I use format mm/dd/ and I type in 5/1/2007, it's
not going to parse correctly (code in date.js:440).  This causes the
calendar to not refresh correctly and it's somewhat confusing to the
user.  Is there any way to get around that?

Will

On Apr 24, 4:54 am, Kelvin Luck [EMAIL PROTECTED] wrote:
 Hi,

 I'd like to announce the beta release of v2 of mydatePickerplugin for jQuery. 
 This release is a complete rewrite which makes the date picker considerably 
 more powerful and flexible than it previously was. Check out the temporary 
 project page:

 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/

 Note, this is currently in beta and may be a little rough around the edges 
 but I'd love to get some feedback. I've tested in FF2, IE6 and Opera 9 but it 
 would be good to know if it works in other browsers (particulaly Safari). 
 Plus any other feedback on extra stuff you'd like adding or bugs you discover,

 Cheers,

 Kelvin :)



[jQuery] Re: datePicker v2 beta

2007-05-02 Thread Sam Collett

On Apr 30, 2:34 pm, Kelvin Luck [EMAIL PROTECTED] wrote:
 Hi,

 On Mon, April 30, 2007 12:25 pm, Sam Collett wrote:

  Several features in that picker that look like they would be handy in
  Kelvin's that aren't in yet are:

  Keyboard Navigation

 I've been thinking about this... It's not a priority for me currently
 because I'm not sure that it would be worth the extra filesize on the
 plugin for the amount of people who would use it. It is on a TODO list as
 something to possibly implement as an optional extension if/ when I have
 time...

  Don't show the days in other months (you can use CSS to hide them, but
  they would still be clickable)

 You can also use CSS to render them non-clickable. Just give them a style
 of disabled in the custom cell renderer... I'll set up an example of this
 before the actual release of the plugin...

  Disable certain days of the week (e.g. Saturday and Sunday)

 Did you see the custom cell renderer 
 demo?http://kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerCust...

  Transparency (could probably be done with CSS)

 Yeah - I think this should be done in the CSS.

 Thanks for the feedback,

 Kelvin :)

A couple more suggestions:

- abbreviated month names (Jan, Feb etc)
- longer day names (Mon, Monday, Tue, Tuesday etc)

And something that would be nice, but may be a bit of work (and
perhaps better suited as an extension):

- have the year at the top and all the months below it, like how
Google Analytics does it (http://www.texotela.co.uk/gacal.jpg)
- as a result, you could perhaps select all the days in the month, or
select a whole week

I appreciate all the work you are putting into this (as I am sure
others are too). It is plugins like this that help to get people into
jQuery.



[jQuery] Re: datePicker v2 beta

2007-05-02 Thread Ariel Jakobovits

Even though the previous poster is a bottom-poster, I have to agree with 
him/her that showing the months at the top like the Google cal looks very nice 
and user friendly.

;)

- Original Message 
From: Sam Collett [EMAIL PROTECTED]
To: jQuery (English) jquery-en@googlegroups.com
Sent: Wednesday, May 2, 2007 8:38:21 AM
Subject: [jQuery] Re: datePicker v2 beta


On Apr 30, 2:34 pm, Kelvin Luck [EMAIL PROTECTED] wrote:
 Hi,

 On Mon, April 30, 2007 12:25 pm, Sam Collett wrote:

  Several features in that picker that look like they would be handy in
  Kelvin's that aren't in yet are:

  Keyboard Navigation

 I've been thinking about this... It's not a priority for me currently
 because I'm not sure that it would be worth the extra filesize on the
 plugin for the amount of people who would use it. It is on a TODO list as
 something to possibly implement as an optional extension if/ when I have
 time...

  Don't show the days in other months (you can use CSS to hide them, but
  they would still be clickable)

 You can also use CSS to render them non-clickable. Just give them a style
 of disabled in the custom cell renderer... I'll set up an example of this
 before the actual release of the plugin...

  Disable certain days of the week (e.g. Saturday and Sunday)

 Did you see the custom cell renderer 
 demo?http://kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerCust...

  Transparency (could probably be done with CSS)

 Yeah - I think this should be done in the CSS.

 Thanks for the feedback,

 Kelvin :)

A couple more suggestions:

- abbreviated month names (Jan, Feb etc)
- longer day names (Mon, Monday, Tue, Tuesday etc)

And something that would be nice, but may be a bit of work (and
perhaps better suited as an extension):

- have the year at the top and all the months below it, like how
Google Analytics does it (http://www.texotela.co.uk/gacal.jpg)
- as a result, you could perhaps select all the days in the month, or
select a whole week

I appreciate all the work you are putting into this (as I am sure
others are too). It is plugins like this that help to get people into
jQuery.


[jQuery] Re: datePicker v2 beta

2007-05-02 Thread tlphipps

Kelvin,

Have you been able to make any progress on detecting the edge of the
browser?  This is the one thing that has really been problematic for
me.

On May 2, 10:38 am, Sam Collett [EMAIL PROTECTED] wrote:
 On Apr 30, 2:34 pm, Kelvin Luck [EMAIL PROTECTED] wrote:



  Hi,

  On Mon, April 30, 2007 12:25 pm, Sam Collett wrote:

   Several features in that picker that look like they would be handy in
   Kelvin's that aren't in yet are:

   Keyboard Navigation

  I've been thinking about this... It's not a priority for me currently
  because I'm not sure that it would be worth the extra filesize on the
  plugin for the amount of people who would use it. It is on a TODO list as
  something to possibly implement as an optional extension if/ when I have
  time...

   Don't show the days in other months (you can use CSS to hide them, but
   they would still be clickable)

  You can also use CSS to render them non-clickable. Just give them a style
  of disabled in the custom cell renderer... I'll set up an example of this
  before the actual release of the plugin...

   Disable certain days of the week (e.g. Saturday and Sunday)

  Did you see the custom cell renderer 
  demo?http://kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerCust...

   Transparency (could probably be done with CSS)

  Yeah - I think this should be done in the CSS.

  Thanks for the feedback,

  Kelvin :)

 A couple more suggestions:

 - abbreviated month names (Jan, Feb etc)
 - longer day names (Mon, Monday, Tue, Tuesday etc)

 And something that would be nice, but may be a bit of work (and
 perhaps better suited as an extension):

 - have the year at the top and all the months below it, like how
 Google Analytics does it (http://www.texotela.co.uk/gacal.jpg)
 - as a result, you could perhaps select all the days in the month, or
 select a whole week

 I appreciate all the work you are putting into this (as I am sure
 others are too). It is plugins like this that help to get people into
 jQuery.



[jQuery] Re: datePicker v2 beta

2007-04-30 Thread Sam Collett

On Apr 28, 9:39 am, R. Rajesh Jeba Anbiah
[EMAIL PROTECTED] wrote:
 On Apr 24, 2:54 pm, Kelvin Luck [EMAIL PROTECTED] wrote: Hi,

  I'd like to announce the beta release of v2 of mydatePickerplugin for 
  jQuery. This release is a complete rewrite which makes the date picker 
  considerably more powerful and flexible than it previously was. Check out 
  the temporary project page:

 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/

   snip

  I suppose, you may take some of the nice concepts from 
 http://www.frequency-decoder.com/2005/10/14/unobtrusive-date-picker-widgit/

 --
   ?php echo 'Just another PHP saint'; ?
 Email: rrjanbiah-at-Y!comBlog:http://rajeshanbiah.blogspot.com/

That's quite a nice date picker.

Several features in that picker that look like they would be handy in
Kelvin's that aren't in yet are:

Keyboard Navigation
Don't show the days in other months (you can use CSS to hide them, but
they would still be clickable)
Disable certain days of the week (e.g. Saturday and Sunday)
Transparency (could probably be done with CSS)



[jQuery] Re: datePicker v2 beta

2007-04-30 Thread Sam Collett

On Apr 30, 12:25 pm, Sam Collett [EMAIL PROTECTED] wrote:
 On Apr 28, 9:39 am, R. Rajesh Jeba Anbiah

 [EMAIL PROTECTED] wrote:
  On Apr 24, 2:54 pm, Kelvin Luck [EMAIL PROTECTED] wrote: Hi,

   I'd like to announce the beta release of v2 of mydatePickerplugin for 
   jQuery. This release is a complete rewrite which makes the date picker 
   considerably more powerful and flexible than it previously was. Check out 
   the temporary project page:

  http://kelvinluck.com/assets/jquery/datePicker/v2/demo/

snip

   I suppose, you may take some of the nice concepts from 
  http://www.frequency-decoder.com/2005/10/14/unobtrusive-date-picker-w...

  --
?php echo 'Just another PHP saint'; ?
  Email: rrjanbiah-at-Y!comBlog:http://rajeshanbiah.blogspot.com/

 That's quite a nice date picker.

 Several features in that picker that look like they would be handy in
 Kelvin's that aren't in yet are:

 Keyboard Navigation
 Don't show the days in other months (you can use CSS to hide them, but
 they would still be clickable)
 Disable certain days of the week (e.g. Saturday and Sunday)
 Transparency (could probably be done with CSS)

Just thought of something else - an onDateChanged event. Could be
useful for date pickers that depend on each other (i.e. a date range,
defined by two pickers - 'picker2' has to be a later date than
'picker1')



[jQuery] Re: datePicker v2 beta

2007-04-30 Thread R. Rajesh Jeba Anbiah

On Apr 30, 4:30 pm, Sam Collett [EMAIL PROTECTED] wrote:
 On Apr 30, 12:25 pm, Sam Collett [EMAIL PROTECTED] wrote:
  On Apr 28, 9:39 am, R.RajeshJebaAnbiah
  [EMAIL PROTECTED] wrote:
   On Apr 24, 2:54 pm, Kelvin Luck [EMAIL PROTECTED] wrote: Hi,

I'd like to announce the beta release of v2 of mydatePickerplugin for 
jQuery. This release is a complete rewrite which makes the date picker 
considerably more powerful and flexible than it previously was. Check 
out the temporary project page:

   http://kelvinluck.com/assets/jquery/datePicker/v2/demo/

 snip

I suppose, you may take some of the nice concepts from 
   http://www.frequency-decoder.com/2005/10/14/unobtrusive-date-picker-w...

  That's quite a nice date picker.

  Several features in that picker that look like they would be handy in
  Kelvin's that aren't in yet are:

  Keyboard Navigation
  Don't show the days in other months (you can use CSS to hide them, but
  they would still be clickable)
  Disable certain days of the week (e.g. Saturday and Sunday)
  Transparency (could probably be done with CSS)

 Just thought of something else - an onDateChanged event. Could be
 useful for date pickers that depend on each other (i.e. a date range,
 defined by two pickers - 'picker2' has to be a later date than
 'picker1')

 Oh, yes. But, I was hinting at the unobtrusiveness. The date
format and etc can be set via class attributes

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: datePicker v2 beta

2007-04-30 Thread Kelvin Luck

Hi,

On Mon, April 30, 2007 12:25 pm, Sam Collett wrote:

 Several features in that picker that look like they would be handy in
 Kelvin's that aren't in yet are:

 Keyboard Navigation

I've been thinking about this... It's not a priority for me currently
because I'm not sure that it would be worth the extra filesize on the
plugin for the amount of people who would use it. It is on a TODO list as
something to possibly implement as an optional extension if/ when I have
time...

 Don't show the days in other months (you can use CSS to hide them, but
 they would still be clickable)

You can also use CSS to render them non-clickable. Just give them a style
of disabled in the custom cell renderer... I'll set up an example of this
before the actual release of the plugin...

 Disable certain days of the week (e.g. Saturday and Sunday)

Did you see the custom cell renderer demo?
http://kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerCustomCellRender.html

 Transparency (could probably be done with CSS)


Yeah - I think this should be done in the CSS.

Thanks for the feedback,

Kelvin :)




[jQuery] Re: datePicker v2 beta

2007-04-30 Thread Kelvin Luck

On Mon, April 30, 2007 12:30 pm, Sam Collett wrote:

 Just thought of something else - an onDateChanged event. Could be
 useful for date pickers that depend on each other (i.e. a date range,
 defined by two pickers - 'picker2' has to be a later date than
 'picker1')


I'm guessing you didn't see the Start and end date pickers example either?

http://kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerStartEnd.html

There are a number of custom events thrown by elements with date pickers
attached to them dateSelected, dpClosed, and dpMonthChanged. They are
described in more detail (along with descriptions of the arguments they
recieve) in the documentation (inline or HTML),

Hope that helps,

Kelvin :)



[jQuery] Re: datePicker v2 beta

2007-04-28 Thread R. Rajesh Jeba Anbiah

On Apr 24, 2:54 pm, Kelvin Luck [EMAIL PROTECTED] wrote:
 Hi,

 I'd like to announce the beta release of v2 of my datePicker plugin for 
 jQuery. This release is a complete rewrite which makes the date picker 
 considerably more powerful and flexible than it previously was. Check out the 
 temporary project page:

 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/
  snip

 I suppose, you may take some of the nice concepts from http://
www.frequency-decoder.com/2005/10/14/unobtrusive-date-picker-widgit/

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: datePicker v2 beta

2007-04-27 Thread withoutwax

Wow absolutely fantastic!

I played around with the previous version on a travel website I was
developing but found it just wasn't quite right. But this new version
looks awesome.

It works perfectly in IE7 - any news on backwards compatability with
IE6 for example?

Also - how difficult would it be to link the two datepicker example to
a length input/select, to track nights for example?

Anyway thanks for all your hard work developing this.

Ben



On Apr 24, 10:54 am, Kelvin Luck [EMAIL PROTECTED] wrote:
 Hi,

 I'd like to announce the beta release of v2 of my datePicker plugin for 
 jQuery. This release is a complete rewrite which makes the date picker 
 considerably more powerful and flexible than it previously was. Check out the 
 temporary project page:

 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/

 Note, this is currently in beta and may be a little rough around the edges 
 but I'd love to get some feedback. I've tested in FF2, IE6 and Opera 9 but it 
 would be good to know if it works in other browsers (particulaly Safari). 
 Plus any other feedback on extra stuff you'd like adding or bugs you discover,

 Cheers,

 Kelvin :)



[jQuery] Re: datePicker v2 beta

2007-04-26 Thread Ariel Jakobovits

follow on this drag issue: your's demo behaves OK but mine doesn't, even when I 
have the same options configured. I will play more with it later today.

- Original Message 
From: Kelvin Luck [EMAIL PROTECTED]
To: jquery-en@googlegroups.com
Sent: Wednesday, April 25, 2007 6:34:31 AM
Subject: [jQuery] Re: datePicker v2 beta


On Wed, 25 Apr 2007 13:04:59 +0100, Ariel Jakobovits [EMAIL PROTECTED] wrote:


 No, really, I mean clickInput: false. if its true, clicking before the drag 
 opens the calendar.

 but if it's false, i can't drag to delete a date i put there.


Weird! I don't have IE7 here so I can't test but does the same thing happen to 
you here:
http://kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerTemp.html

As you can see, I've set inputClick:false in this example. Selecting and 
editing the field works fine for me. Setting inputClick:false should be the 
same as not setting it at all by the way - does your problem specifically 
appear when you set inputClick:false?

By the way. did the code for selecting today work for you?





[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Mayowa

Kevin,
I just have to say; its fantastic!

On Apr 24, 10:54 am, Kelvin Luck [EMAIL PROTECTED] wrote:
 Hi,

 I'd like to announce the beta release of v2 of my datePicker plugin for 
 jQuery. This release is a complete rewrite which makes the date picker 
 considerably more powerful and flexible than it previously was. Check out the 
 temporary project page:

 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/

 Note, this is currently in beta and may be a little rough around the edges 
 but I'd love to get some feedback. I've tested in FF2, IE6 and Opera 9 but it 
 would be good to know if it works in other browsers (particulaly Safari). 
 Plus any other feedback on extra stuff you'd like adding or bugs you discover,

 Cheers,

 Kelvin :)



[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Kelvin Luck

Thanks for the feedback Luke...


 Is there any way to use the datePicker with the keyboard? I couldn't
 figure out how to open it without clicking the calendar icon (which I
 couldn't tab to).


I can pop up the calendar with the keyboard (in Firefox 2 and IE 6) - I can tab 
to it and then press return and it appears. But... This isn't much good because 
you can't select dates using the keyboard. It would definitely be nice to have 
full keyboard control but it's not a priority for me at  the moment (especially 
since it will probably add a fair amount to the file size of the plugin).

 When you're building the calendar, you might want to use the DOM methods
 (i.e. $(document.createElement('table')) for creating certain elements
 -- table, thead, tr, etc. --, it's much faster than $('table/table')
 in Safari.


Cool - thanks for the advise. I've implemented this in the version is svn 
(branches\kelvin-dev\plugins\datePicker) and it seems to have given an 
approximately 10% speed increase to renderCalendar in the PC browsers. Can you 
let me know if it's helped in Safari?

Thanks,

Kelvin :)


[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Ariel Jakobovits

it appears in IE7 that if you have clickInput: false you cannot drag to select 
the text in the input field anymore.

also, i'd like to request that there be a 'Go To Today' link added (or 
add-able).

- Original Message 
From: Kelvin Luck [EMAIL PROTECTED]
To: jquery-en@googlegroups.com
Sent: Wednesday, April 25, 2007 3:24:14 AM
Subject: [jQuery] Re: datePicker v2 beta


 Long story short, it would be nice to be able to set datePicker in
 disabled mode ;-)
 In disabled mode, the calendar-icon would get another class and
 clicks would not be working. But  I guess this is a bit of a curious
 feature request ;-)

 Anyway, thanks for the new version !

I've implemented a new dpSetDisabled feature so that you can disable and 
reenable date picker instances. New demo here:

http://kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerDisabled.html

Thanks for the feedback,

Kelvin :)


[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Kelvin Luck

 Looks fantastic, Kelvin! I showed it to our lead engineer who has been
 assessing date packages and he said he'd drop his current date package in a
 heartbeat for this one IF someone had built a server-side version of it
 (.NET). So, if anyone takes on that challenge let me know. I long for the
 day when I don't have to deal with the rat's nest of code that the  Peter
 Blum date control generates.


Thanks :) I'm curious - why is there a need for a serverside version of this 
control? What exactly would it do? Is it just so that users without JS could 
get date picking functionality? What context are you using the date picker in?

Cheers,

Kelvin :)


[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Kelvin Luck

On Wed, 25 Apr 2007 08:34:06 +0100, Ariel Jakobovits [EMAIL PROTECTED] wrote:

 I just added this to my site. Very nice plugin. You should be proud. One 
 question/request: set the format PER calendar, not globally with Date.

 Again, nice work. and thank you for the documentation.

 -Ariel

Great! Glad you like it...

I considered having the date format settable per calendar rather than globally 
but I couldn't think of a reason people would want calendar's with different 
date formats on the same page... How would you use this functionality?

Cheers,

Kelvin :)


[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Kelvin Luck

 Works flawlessly in Safari 2.0.4 (build 419.3), comparing functionality
 and rendering with Firefox 2.

 However, there is a possible bug in this demo:
 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerIntoSelects.html

 It lets you select invalid dates, such as Feb 31 with the dropdowns.
  While the resulting date in the calendar is sane (Mar 3 in the non-leap
 year that I tested with), there might be some validation code missing
 somewhere.


Hi,

Thanks for the feedback. Re. the invalid dates, I'm not sure where this should 
be corrected. You don't want to stop someone from selecting 31 in the date 
dropdown just because the month dropdown is on Feb (as they may be selecting 31 
and then planning to change the month dropdown).

I've made a bit of a compromise which is that when you open the date picker it 
will now automatically update the selects to the date selected in the date 
picker. Does this make sense to you? Obviously you would want to validate the 
dates in the selects before submitting if this was a real form but this tweak 
means that at least the date you see in the date picker is synchronised with 
the date on the selects..

Cheers,

Kelvin :)


[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Kelvin Luck

On Tue, 24 Apr 2007 16:23:29 +0100, Daemach [EMAIL PROTECTED] wrote:


 Very cool - I can finally replace xin :)  One thing I had to hack into
 that code was the ability to trigger an event on the input field
 programatically after selecting the date.  Can you provide a
 triggerEvent(keyup|focus|change) parameter that will trigger the
 specified event in the attached input element when the date picker
 changes its value?


There are a number of custom events fired when the date picker is used. The 
following two might be interesting to you in this instance:

When a date is selected a dateSelected event is triggered on the relevant 
element and when the datePicker is closed a dpClosed event is fired.

You can see these events being used in the datePicker with custom listener, 
datePicker with multiple select and Start and end date pickers demos.

Do these events do what you need?

Cheers,

Kelvin :)


[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Ariel Jakobovits

you are right. I just like to have customizations like that written right there 
in the code where I apply the calendar plugin so future developers will see it 
rather than have to hunt for the source of the date format. doesn't really 
matter, its up to you.

- Original Message 
From: Kelvin Luck [EMAIL PROTECTED]
To: jquery-en@googlegroups.com
Sent: Wednesday, April 25, 2007 4:31:09 AM
Subject: [jQuery] Re: datePicker v2 beta


On Wed, 25 Apr 2007 08:34:06 +0100, Ariel Jakobovits [EMAIL PROTECTED] wrote:

 I just added this to my site. Very nice plugin. You should be proud. One 
 question/request: set the format PER calendar, not globally with Date.

 Again, nice work. and thank you for the documentation.

 -Ariel

Great! Glad you like it...

I considered having the date format settable per calendar rather than globally 
but I couldn't think of a reason people would want calendar's with different 
date formats on the same page... How would you use this functionality?

Cheers,

Kelvin :)


[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Kelvin Luck

 it appears in IE7 that if you have clickInput: false you cannot drag to 
 select the text in the input field anymore.

I presume you mean if you have clickInput:true? The simple answer is not to use 
clickInput:true if you want people to be able to select the text! To tell the 
truth I wouldn't particulaly recommend using clickInput:true, it doesn't seem 
to intuitive or accessible to me - I just implemented it because it was a 
feature request from the old version of the plugin.


 also, i'd like to request that there be a 'Go To Today' link added (or 
 add-able).

That should be easy enough to add yourself if you want to. Something like the 
following (untested):

$('DATEPICKER_ELEMENT').setSelectedDate((new Date()).asString())

(obviously with DATEPICKER_ELEMENT replaced by an expression to select the 
element you have bound the date picker to).

Hope that helps,

Kelvin :)


[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Dan G. Switzer, II

Kelvin,

I've implemented a new dpSetDisabled feature so that you can disable and
reenable date picker instances. New demo here:

http://kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerDisabled.h
tml

Just a quick behavioral quirk I noticed. After disabling the field, the
cursor shows as the pointer/hand when you mouse over where the calendar
button is.

I'm sure you hide the anchor instead of setting the display to none so that
the layout doesn't change, but I could see this as a confusing behavior.

Also, when you're tabbing through the DOM elements (using the [TAB] key)
it'll stop on the hidden anchor.

You could probably solve this problem by setting the original a href /
anchor to display: none and then inserting a a name / anchor in its place
(with a visibility: hidden.) You shouldn't be able to tab or click on a name
anchor, but it should conform to the same class definitions.

Just an idea.

-Dan



[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Kelvin Luck

On Wed, 25 Apr 2007 13:04:59 +0100, Ariel Jakobovits [EMAIL PROTECTED] wrote:


 No, really, I mean clickInput: false. if its true, clicking before the drag 
 opens the calendar.

 but if it's false, i can't drag to delete a date i put there.


Weird! I don't have IE7 here so I can't test but does the same thing happen to 
you here:
http://kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerTemp.html

As you can see, I've set inputClick:false in this example. Selecting and 
editing the field works fine for me. Setting inputClick:false should be the 
same as not setting it at all by the way - does your problem specifically 
appear when you set inputClick:false?

By the way. did the code for selecting today work for you?


[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Kelvin Luck

 you are right. I just like to have customizations like that written right 
 there in the code where I apply the calendar plugin so future developers will 
 see it rather than have to hunt for the source of the date format. doesn't 
 really matter, its up to you.


It won't hurt to reset the date format in your page if you like. Just do 
something like:

Date.format = 'dd mmm ';

Obviously whatever you set in your page will override what is set in the 
date.js file.


[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Nettoyeur

wow, already implemented after a few hours, that's fast enough for
me ;-)
Thanks for spending your time on this feature, you made my day!

On Apr 25, 12:24 pm, Kelvin Luck [EMAIL PROTECTED] wrote:
  Long story short, it would be nice to be able to set datePicker in
  disabled mode ;-)
  In disabled mode, the calendar-icon would get another class and
  clicks would not be working. But  I guess this is a bit of a curious
  feature request ;-)

  Anyway, thanks for the new version !

 I've implemented a new dpSetDisabled feature so that you can disable and 
 reenable date picker instances. New demo here:

 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerDisa...

 Thanks for the feedback,

 Kelvin :)



[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Kelvin Luck

On Wed, 25 Apr 2007 13:08:10 +0100, Ariel Jakobovits [EMAIL PROTECTED] wrote:


 sorry for 2 emails for one response.

 I don't mean Set to today I mean Go To Today in the calendar itself.

 see, if I type '123' in the date field, then click the calendar icon to open 
 the popup, the calendar will be on the startDate I defined, in my case 
 January 1, 2000.

 I don't want the user to have to click click click back to April 2007. I want 
 a little link that says Go to Today or Today to reset the calendar to 
 today's date.


Emails to the group seem to be arriving in the wrong order for me... That's why 
I asked about this in the other reply...

Anyway - I see. So you want a link within the calendar popup itself for 
today? Which would select today's date but not close the calendar? I can put 
that on the TODO list...


[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Kelvin Luck

On Wed, 25 Apr 2007 14:25:19 +0100, Dan G. Switzer, II [EMAIL PROTECTED] 
wrote:


 Kelvin,

 I've implemented a new dpSetDisabled feature so that you can disable and
 reenable date picker instances. New demo here:

 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerDisabled.h
 tml

 Just a quick behavioral quirk I noticed. After disabling the field, the
 cursor shows as the pointer/hand when you mouse over where the calendar
 button is.


Well spotted! I've made a little change to the CSS to help avoid this problem. 
I also modified the plugin so that the link doesn't have a title when it is 
disabled so that no tooltip shows up.

 I'm sure you hide the anchor instead of setting the display to none so that
 the layout doesn't change, but I could see this as a confusing behavior.

 Also, when you're tabbing through the DOM elements (using the [TAB] key)
 it'll stop on the hidden anchor.

 You could probably solve this problem by setting the original a href /
 anchor to display: none and then inserting a a name / anchor in its place
 (with a visibility: hidden.) You shouldn't be able to tab or click on a name
 anchor, but it should conform to the same class definitions.

That sounds like it might work but seems to me that it would add unnecessary 
complications to the plugin for what is quite a small reward... I would have to 
consider things like what happens if the user had added an id to the button 
and is using that to style it as well as simply swapping the elements. I did 
some experiements with trying to delete the href or set it to '' but they 
didn't seem to render the link untabbable. I think it's something I may revisit 
if (when?) I look at making the datePicker keyboard accessible...

Thanks for the feedback,

Kelvin :)


 Just an idea.

 -Dan






[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Brian Miller

It's a .NET thing.  The ASP.NET paradigm is to write your page in a
server-side language (usually C#), and the server-side object gets
rendered into whatever is viewed on the client side.

It would be pretty involved, though, because the plugin is dependent on
jQuery (and bgiframe, and the Date methods).

The way to do it is probably to create an element (class) for each
dependency, to be instantiated in the ASP page, and then do some
exception-handling for when the dependencies are missing.  I believe that
there's a way to have it error at compile-time, so you can see right in
Visual Studio if you forgot to include something.

My C# is pretty rusty, but it would be worthwhile for someone to do a
jQuery for ASP project.  I'm not sure that I'll have a lot of time to
devote to it, but I can kind of see how it would be done.

- Brian


 Looks fantastic, Kelvin! I showed it to our lead engineer who has been
 assessing date packages and he said he'd drop his current date package
 in a
 heartbeat for this one IF someone had built a server-side version of it
 (.NET). So, if anyone takes on that challenge let me know. I long for
 the
 day when I don't have to deal with the rat's nest of code that the
 Peter
 Blum date control generates.


 Thanks :) I'm curious - why is there a need for a serverside version of
 this control? What exactly would it do? Is it just so that users without
 JS could get date picking functionality? What context are you using the
 date picker in?

 Cheers,

 Kelvin :)




[jQuery] Re: datePicker v2 beta

2007-04-25 Thread rolfsf


Thanks for the explanation Citrus. I'm strictly a front-end designer, so I
don't really understand the whole .NET paradigm, or why it needs to be a
server-side control. I've already introduced jQuery and several plugins into
the mix, and the .NET developers love it. I'll try and get a better
explanation from them.


Citrus wrote:
 
 
 It's a .NET thing.  The ASP.NET paradigm is to write your page in a
 server-side language (usually C#), and the server-side object gets
 rendered into whatever is viewed on the client side.
 
 It would be pretty involved, though, because the plugin is dependent on
 jQuery (and bgiframe, and the Date methods).
 
 The way to do it is probably to create an element (class) for each
 dependency, to be instantiated in the ASP page, and then do some
 exception-handling for when the dependencies are missing.  I believe that
 there's a way to have it error at compile-time, so you can see right in
 Visual Studio if you forgot to include something.
 
 My C# is pretty rusty, but it would be worthwhile for someone to do a
 jQuery for ASP project.  I'm not sure that I'll have a lot of time to
 devote to it, but I can kind of see how it would be done.
 
 - Brian
 
 
 Looks fantastic, Kelvin! I showed it to our lead engineer who has been
 assessing date packages and he said he'd drop his current date package
 in a
 heartbeat for this one IF someone had built a server-side version of it
 (.NET). So, if anyone takes on that challenge let me know. I long for
 the
 day when I don't have to deal with the rat's nest of code that the
 Peter
 Blum date control generates.


 Thanks :) I'm curious - why is there a need for a serverside version of
 this control? What exactly would it do? Is it just so that users without
 JS could get date picking functionality? What context are you using the
 date picker in?

 Cheers,

 Kelvin :)
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/datePicker-v2-beta-tf3637608s15494.html#a10181833
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Brian Miller

It's easy enough to simply code the script tags right into the page. 
But, from an engineering standpoint, I can see why the dev manager wants
to keep everything as an ASP.NET control.  His people are probably mostly
.NET people who use C# or VB.NET .

- Brian

 Thanks for the explanation Citrus. I'm strictly a front-end designer, so I
 don't really understand the whole .NET paradigm, or why it needs to be a
 server-side control. I've already introduced jQuery and several plugins
 into
 the mix, and the .NET developers love it. I'll try and get a better
 explanation from them.


 Citrus wrote:


 It's a .NET thing.  The ASP.NET paradigm is to write your page in a
 server-side language (usually C#), and the server-side object gets
 rendered into whatever is viewed on the client side.

 It would be pretty involved, though, because the plugin is dependent on
 jQuery (and bgiframe, and the Date methods).

 The way to do it is probably to create an element (class) for each
 dependency, to be instantiated in the ASP page, and then do some
 exception-handling for when the dependencies are missing.  I believe
 that
 there's a way to have it error at compile-time, so you can see right in
 Visual Studio if you forgot to include something.

 My C# is pretty rusty, but it would be worthwhile for someone to do a
 jQuery for ASP project.  I'm not sure that I'll have a lot of time to
 devote to it, but I can kind of see how it would be done.

 - Brian


 Looks fantastic, Kelvin! I showed it to our lead engineer who has been
 assessing date packages and he said he'd drop his current date package
 in a
 heartbeat for this one IF someone had built a server-side version of
 it
 (.NET). So, if anyone takes on that challenge let me know. I long for
 the
 day when I don't have to deal with the rat's nest of code that the
 Peter
 Blum date control generates.


 Thanks :) I'm curious - why is there a need for a serverside version of
 this control? What exactly would it do? Is it just so that users
 without
 JS could get date picking functionality? What context are you using the
 date picker in?

 Cheers,

 Kelvin :)





 --
 View this message in context:
 http://www.nabble.com/datePicker-v2-beta-tf3637608s15494.html#a10181833
 Sent from the JQuery mailing list archive at Nabble.com.






[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Mike Chabot


I would guess this is not going to happen any time soon. There are a
lot of date pickers for ASP.NET already, including one distributed by
Microsoft as part of their Ajax library. They way ASP.NET pages get
converted to HTML when viewed by the user makes it hard to use any
JavaScript library that is not specifically coded for ASP.NET.

-Mike Chabot

On 4/25/07, Brian Miller [EMAIL PROTECTED] wrote:


It's a .NET thing.  The ASP.NET paradigm is to write your page in a
server-side language (usually C#), and the server-side object gets
rendered into whatever is viewed on the client side.

It would be pretty involved, though, because the plugin is dependent on
jQuery (and bgiframe, and the Date methods).

The way to do it is probably to create an element (class) for each
dependency, to be instantiated in the ASP page, and then do some
exception-handling for when the dependencies are missing.  I believe that
there's a way to have it error at compile-time, so you can see right in
Visual Studio if you forgot to include something.

My C# is pretty rusty, but it would be worthwhile for someone to do a
jQuery for ASP project.  I'm not sure that I'll have a lot of time to
devote to it, but I can kind of see how it would be done.

- Brian


 Looks fantastic, Kelvin! I showed it to our lead engineer who has been
 assessing date packages and he said he'd drop his current date package
 in a
 heartbeat for this one IF someone had built a server-side version of it
 (.NET). So, if anyone takes on that challenge let me know. I long for
 the
 day when I don't have to deal with the rat's nest of code that the
 Peter
 Blum date control generates.


 Thanks :) I'm curious - why is there a need for a serverside version of
 this control? What exactly would it do? Is it just so that users without
 JS could get date picking functionality? What context are you using the
 date picker in?

 Cheers,

 Kelvin :)





[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Kelvin Luck

I only just received this email even though it looks like it was sent 
yesterday... Is anyone else still having issues with the list lagging?


 Looking good. Lots of examples - although it would be nice to have
 some CSS samples as well (or 'style packs' - Outlook 2003, Google
 Calendar etc)

Yeah - that would be nice... If anyone wants to contribute some I'll gladly add 
them in :)


 Just need a time picker to complement it.

 I have worked on one (http://www.texotela.co.uk/code/jquery/
 timepicker/), but am unsure how to scroll to the currently selected
 time (like how it does in Google calendar when creating an event) as
 well as some other bugs (one of which can be fixed if I used the
 dimensions plugin).


Cool - the timepicker looks nice... Are you working on it now? I'm sure I saw 
the link through the google groups interface earlier and it looked completely 
different. It was using a select element then? And now you are creating some 
divs?


[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Kelvin Luck


 I've found some issues in Opera 9:

 * Sometimes the calendar doesn't render instantly when browsing fast
 through the dates, which makes it close unintentionally. I've fixed it
 by setting a fixed hight and width on div#dp-popup in the CSS.

Yes - I was able to replicate this by clicking like a maniac. It doesn't seem 
to effect FF or IE... I've added min-height and min-width to the CSS...


 * When the calendar _starts_ with an arrow disabled the hand cursor
 doesn't turn up again even though it's enabled.

I managed to replicate this and have fixed it. Well - worked around it. To be 
honest it looked like a bug in Opera but it works if your rules are a bit more 
specific. Grab the updated stylesheet from my site...


 I also have some questions: :)

 * Would it be trivial to not use the dimension plugin (ok, it's only
 4.7 kb packed but anyway..)? I've done some CSS tests (think I might
 have showed it to you some time ago) which positions a DIV to e.g an
 input using CSS. I think Drupal uses a similar technique when
 positioning an autocomplete dropdown: http://perifer.se/test/datepickerCSS.htm

I don't think so. Considering that the date picker should work in any situation 
in any page. I think a lot of work has gone into making the dimensions plugin 
capable of doing exactly that would result in reinventing the wheel and 
probably making it slightly less round! By the way, the way the calendar is 
attached is different to how you show it in that demo, it is now attached to 
the end of the body and positioned absolutely (to allow more flexibility in 
positioning it in more situations).


 * Is email the preferred way or reporting bugs in plugins (in SVN) or
 should Trac (http://dev.jquery.com/newticket) be used instead?

Not sure in general but I would prefer email to the list while this plugin is 
in beta. Once it is released then Trac would probably make sense. It looks like 
the new plugins page will be somehow linked into the Trac system anyway which 
will help with this...


 Excellent plugin! /Anders


Thanks!

Kelvin :)




[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Shaun Kester

I get an error in Firefox and IE with the latest build. Firebug
output:

(new Date).zeroTime is not a function
setStartDate(undefined)jquery.datePicker... (line 516)
init(Object renderCallback=[0] createButton=true)jquery.datePicker...
(line 498)
(no name)()jquery.datePicker... (line 215)
e([input#SearchDate], function(), undefined)jQuery.js (line 1)
e(function(), undefined)jQuery.js (line 1)
datePicker(Object renderCallback=[0]
createButton=true)jquery.datePicker... (line 205)
(no name)(pfieldsetlegendChange Date/legend\r\nform
id=rsSearchDate name=rsSearchDate method=post...)RepSched.js
(line 23)
e([div#ContentOne], function(), [pfieldsetlegendChange Date/
legend\r\nform id=rsSearchDate name=rsSearchDate
method=post..., success, XMLHttpRequest])jQuery.js (line 1)
e(function(), [pfieldsetlegendChange Date/legend\r\nform
id=rsSearchDate name=rsSearchDate method=post..., success,
XMLHttpRequest])jQuery.js (line 1)
e(XMLHttpRequest, success)jQuery.js (line 1)
e(undefined)jQuery.js (line 1)
[Break on this error] this.startDate = (new Date()).zeroTime();

Thoughts?

On Apr 24, 2:54 am, Kelvin Luck [EMAIL PROTECTED] wrote:
 Hi,

 I'd like to announce the beta release of v2 of my datePicker plugin for 
 jQuery. This release is a complete rewrite which makes the date picker 
 considerably more powerful and flexible than it previously was. Check out the 
 temporary project page:

 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/

 Note, this is currently in beta and may be a little rough around the edges 
 but I'd love to get some feedback. I've tested in FF2, IE6 and Opera 9 but it 
 would be good to know if it works in other browsers (particulaly Safari). 
 Plus any other feedback on extra stuff you'd like adding or bugs you discover,

 Cheers,

 Kelvin :)



[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Ariel Jakobovits

Does the Date.format field get reference within the datepicker function or does 
it get copied when the function is run initially.

So...

Date.format = FORMAT_1

jQuery('#1').datepicker();

Date.format = FORMAT_2

jQuery(#2).datepicker();


What will a date from #1 look like when it is opened and used down the 
road...FORMAT_1 or FORMAT_2?

- Original Message 
From: Kelvin Luck [EMAIL PROTECTED]
To: jquery-en@googlegroups.com
Sent: Wednesday, April 25, 2007 6:35:45 AM
Subject: [jQuery] Re: datePicker v2 beta


 you are right. I just like to have customizations like that written right 
 there in the code where I apply the calendar plugin so future developers will 
 see it rather than have to hunt for the source of the date format. doesn't 
 really matter, its up to you.


It won't hurt to reset the date format in your page if you like. Just do 
something like:

Date.format = 'dd mmm ';

Obviously whatever you set in your page will override what is set in the 
date.js file.





[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Kelvin Luck

On Wed, 25 Apr 2007 22:20:16 +0100, Ariel Jakobovits [EMAIL PROTECTED] wrote:


 Does the Date.format field get reference within the datepicker function or 
 does it get copied when the function is run initially.

 So...

 Date.format = FORMAT_1

 jQuery('#1').datepicker();

 Date.format = FORMAT_2

 jQuery(#2).datepicker();


 What will a date from #1 look like when it is opened and used down the 
 road...FORMAT_1 or FORMAT_2?

It will look like FORMAT_2


[jQuery] Re: datePicker v2 beta

2007-04-24 Thread Mike Alsup


This is awesome, Kelvin!!  Works great in IE7.

Mike


I'd like to announce the beta release of v2 of my datePicker plugin for jQuery. 
This release is a complete rewrite which makes the date picker considerably 
more powerful and flexible than it previously was. Check out the temporary 
project page:

http://kelvinluck.com/assets/jquery/datePicker/v2/demo/


[jQuery] Re: datePicker v2 beta

2007-04-24 Thread weepy

looks great - but i think it should have a close button (x), since
clicking on the background to close it isn't quite intuitive



On Apr 24, 11:41 am, Mike Alsup [EMAIL PROTECTED] wrote:
 This is awesome, Kelvin!!  Works great in IE7.

 Mike

  I'd like to announce the beta release of v2 of my datePicker plugin for 
  jQuery. This release is a complete rewrite which makes the date picker 
  considerably more powerful and flexible than it previously was. Check out 
  the temporary project page:

 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/



[jQuery] Re: datePicker v2 beta

2007-04-24 Thread Kelvin Luck

Thanks Mike :)

On Tue, 24 Apr 2007 11:41:00 +0100, Mike Alsup [EMAIL PROTECTED] wrote:


 This is awesome, Kelvin!!  Works great in IE7.

 Mike

 I'd like to announce the beta release of v2 of my datePicker plugin for 
 jQuery. This release is a complete rewrite which makes the date picker 
 considerably more powerful and flexible than it previously was. Check out 
 the temporary project page:

 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/





[jQuery] Re: datePicker v2 beta

2007-04-24 Thread weepy

great ! you've thought of everything :)


On Apr 24, 12:02 pm, Kelvin Luck [EMAIL PROTECTED] wrote:
 You can create a close button by passing in displayClose:true when you create 
 the date picker. You can use CSS to style it how you like, I've left it very 
 simple in my multiple select 
 demo:http://kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerMult...

 On Tue, 24 Apr 2007 11:55:30 +0100, weepy [EMAIL PROTECTED] wrote:

  looks great - but i think it should have a close button (x), since
  clicking on the background to close it isn't quite intuitive



[jQuery] Re: datePicker v2 beta

2007-04-24 Thread Dan G. Switzer, II

Kelvin,

I'd like to announce the beta release of v2 of my datePicker plugin for
jQuery. This release is a complete rewrite which makes the date picker
considerably more powerful and flexible than it previously was. Check out
the temporary project page:

http://kelvinluck.com/assets/jquery/datePicker/v2/demo/

This looks very good! Just a couple quick comments:

* When using clickInput:true, you might want to turn off autocomplete
automatically for the field. When the browser's built-in autocomplete box
gets triggered, it hovers over the data picker. Plus it looks a little
weird.

* Comments in the datePicker.css to describe what each class affects would
be really nice when styling new versions of the file.

* The bind and renderCallbacks should make the plug-in *extremely*
configurable. While I didn't dig into things too much, I couldn't think of
anything you wouldn't be able to do w/the existing callbacks. It's always
nice when you can create a plug-in that shouldn't require people modifying
the source. :)

-Dan


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
jQuery (English) group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-en?hl=en
-~--~~~~--~~--~--~---



[jQuery] Re: datePicker v2 beta

2007-04-24 Thread Kelvin Luck

On Tue, 24 Apr 2007 16:53:27 +0100, Shelane [EMAIL PROTECTED] wrote:


 Is there a way to allow the user to select a date in the past without
 that being the default date shown?


Yes. Simply pass a startDate in when you initialise the date picker or call 
dpSetStartDate afterwards. The date picker defaults to showing todays month (as 
long as that is inside the limits of startDate and endDate) but you can control 
which month is shown by passing in month and year parameters when you 
initialise the date picker or by calling $().dpSetDisplayedMonth(m, y) on 
elements with date pickers associated.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
jQuery (English) group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-en?hl=en
-~--~~~~--~~--~--~---



[jQuery] Re: datePicker v2 beta

2007-04-24 Thread Glen Hinkle

Kelvin, you are my hero.

-g


On Apr 24, 2007, at 12:36 PM, Kelvin Luck wrote:


 On Tue, 24 Apr 2007 16:53:27 +0100, Shelane [EMAIL PROTECTED] wrote:


 Is there a way to allow the user to select a date in the past without
 that being the default date shown?


 Yes. Simply pass a startDate in when you initialise the date picker  
 or call dpSetStartDate afterwards. The date picker defaults to  
 showing todays month (as long as that is inside the limits of  
 startDate and endDate) but you can control which month is shown by  
 passing in month and year parameters when you initialise the date  
 picker or by calling $().dpSetDisplayedMonth(m, y) on elements with  
 date pickers associated.

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
jQuery (English) group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-en?hl=en
-~--~~~~--~~--~--~---



[jQuery] Re: datePicker v2 beta

2007-04-24 Thread Brian Miller

OK, that's hot.

Thank you for doing such awesome work!  I'm totally going to use this all
over the place.  :)

- Brian


 Hi,

 I'd like to announce the beta release of v2 of my datePicker plugin for
 jQuery. This release is a complete rewrite which makes the date picker
 considerably more powerful and flexible than it previously was. Check out
 the temporary project page:

 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/

 Note, this is currently in beta and may be a little rough around the edges
 but I'd love to get some feedback. I've tested in FF2, IE6 and Opera 9 but
 it would be good to know if it works in other browsers (particulaly
 Safari). Plus any other feedback on extra stuff you'd like adding or bugs
 you discover,

 Cheers,

 Kelvin :)



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
jQuery (English) group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-en?hl=en
-~--~~~~--~~--~--~---



[jQuery] Re: datePicker v2 beta

2007-04-24 Thread Kelvin Luck

Hi Dan,

 * When using clickInput:true, you might want to turn off autocomplete
 automatically for the field. When the browser's built-in autocomplete box
 gets triggered, it hovers over the data picker. Plus it looks a little
 weird.

Thanks for the info. My browser hadn't tried to autocomplete any of the fields 
so I hadn't seen this issue. You can also position the date picker so it 
doesn't necessarily have to overlay the input field (so you get the advantage 
of the autocomplete as well).


 * Comments in the datePicker.css to describe what each class affects would
 be really nice when styling new versions of the file.

OK - I'll try and do that. Although they should be fairly self explanatory and 
to tell the truth, I think a quick look around with firebug will be a lot more 
useful than my comments can be :)


 * The bind and renderCallbacks should make the plug-in *extremely*
 configurable. While I didn't dig into things too much, I couldn't think of
 anything you wouldn't be able to do w/the existing callbacks. It's always
 nice when you can create a plug-in that shouldn't require people modifying
 the source. :)

Yeah - I was surprised at how easy the start and end date example was to 
implement and how little code it took...

Thanks for the feedback,

Kelvin :)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
jQuery (English) group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-en?hl=en
-~--~~~~--~~--~--~---



[jQuery] Re: datePicker v2 beta

2007-04-24 Thread =jamon

I wonder if is was possible to display two months , should be
extremely helpfull for travel sites , could it be done easily ?
Great work !
Jamin

On Apr 24, 11:54 am, Kelvin Luck [EMAIL PROTECTED] wrote:
 Hi,

 I'd like to announce the beta release of v2 of my datePicker plugin for 
 jQuery. This release is a complete rewrite which makes the date picker 
 considerably more powerful and flexible than it previously was. Check out the 
 temporary project page:

 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/

 Note, this is currently in beta and may be a little rough around the edges 
 but I'd love to get some feedback. I've tested in FF2, IE6 and Opera 9 but it 
 would be good to know if it works in other browsers (particulaly Safari). 
 Plus any other feedback on extra stuff you'd like adding or bugs you discover,

 Cheers,

 Kelvin :)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
jQuery (English) group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-en?hl=en
-~--~~~~--~~--~--~---



[jQuery] Re: datePicker v2 beta

2007-04-24 Thread Klaus Hartl


Mike Alsup schrieb:


This is awesome, Kelvin!!


+1

Just in time to make it into plazes probably... :-)



-- Klaus



[jQuery] Re: datePicker v2 beta

2007-04-24 Thread Chris W. Parker

On Tuesday, April 24, 2007 2:55 AM Kelvin Luck  said:

 I'd like to announce the beta release of v2 of my datePicker plugin
 for jQuery. This release is a complete rewrite which makes the date
 picker considerably more powerful and flexible than it previously
 was. Check out the temporary project page:   
 
 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/

Good work!


Chris.


[jQuery] Re: datePicker v2 beta

2007-04-24 Thread Glen Lipka

On 4/24/07, Dan G. Switzer, II [EMAIL PROTECTED] wrote:



Kelvin,

I'd like to announce the beta release of v2 of my datePicker plugin for
jQuery. This release is a complete rewrite which makes the date picker
considerably more powerful and flexible than it previously was. Check out
the temporary project page:

http://kelvinluck.com/assets/jquery/datePicker/v2/demo/




I always loved the functionality of the dynarch picker
http://www.dynarch.com/projects/calendar/
It is a great reference for picker with tons of UX enhancements.

Kelvin, Great job.  Looks solid!

Glen


[jQuery] Re: datePicker v2 beta

2007-04-24 Thread Dmitrii 'Mamut' Dimandt

Kelvin Luck wrote:
 Hi,

 I'd like to announce the beta release of v2 of my datePicker plugin for 
 jQuery. This release is a complete rewrite which makes the date picker 
 considerably more powerful and flexible than it previously was. Check out the 
 temporary project page:

 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/

 Note, this is currently in beta and may be a little rough around the edges 
 but I'd love to get some feedback. I've tested in FF2, IE6 and Opera 9 but it 
 would be good to know if it works in other browsers (particulaly Safari). 
 Plus any other feedback on extra stuff you'd like adding or bugs you discover,

   
Wow. This looks truly amazing!


[jQuery] Re: datePicker v2 beta

2007-04-24 Thread Nettoyeur

Kevin, thanks for the fantastic work, almost all my wishes for v1 have
come thru.

I have already implemented v1 in my page which uses google-adwords
style datepickers.
This means, one radio button followed by a select with quick options
like today ,yesterday, this week last month etc.
Below that, the other radiobutton followed by two inputs with
datePicker.v1 attached to select the exact period.

If radiobutton for quick select is chosen(default), I disable the two
inputs, however the two datePicker calendar-icons are still active of
course.
I solved it with an ugly CSS-hack which overlays the datePicker icons
with greyed out icons, so user clicks are not working anymore.

Long story short, it would be nice to be able to set datePicker in
disabled mode ;-)
In disabled mode, the calendar-icon would get another class and
clicks would not be working. But  I guess this is a bit of a curious
feature request ;-)

Anyway, thanks for the new version !


On Apr 24, 11:54 am, Kelvin Luck [EMAIL PROTECTED] wrote:
 Hi,

 I'd like to announce the beta release of v2 of my datePicker plugin for 
 jQuery. This release is a complete rewrite which makes the date picker 
 considerably more powerful and flexible than it previously was. Check out the 
 temporary project page:

 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/

 Note, this is currently in beta and may be a little rough around the edges 
 but I'd love to get some feedback. I've tested in FF2, IE6 and Opera 9 but it 
 would be good to know if it works in other browsers (particulaly Safari). 
 Plus any other feedback on extra stuff you'd like adding or bugs you discover,

 Cheers,

 Kelvin :)



[jQuery] Re: datePicker v2 beta

2007-04-24 Thread Christopher Jordan


Kelvin,

The size of the calendar is totally controlled via CSS so yes - you can 
configure it with CSS...
  

cool :o)

The date picker is implemented as a popup but did you see the renderCalendar 
examples? These allow you to draw a calendar table into any element in your 
document.

I'll have a think about allowing date pickers to be placed in an element of 
your document, I can see where this would be useful (and it would allow you to 
have multiple date pickers open at the same time too),
  
Yes! Yes! I'm working on a big project now (a scheduler program for what 
amounts to a temp agency), and I've just implemented a screen with three 
calendars which act in concert. The three calendars are placed 
vertically on top of one another and when the user clicks to go forward 
or backward either a month or three months at a time, all of the 
calendars change accordingly.


Thanks for considering my feedback! :o)

Cheers,
Chris

Thanks for the feedback,

Kelvin :)

  


--
http://cjordan.info



[jQuery] Re: datePicker v2 beta

2007-04-24 Thread Scott Sauyet


Kelvin Luck wrote:

I'd like to announce the beta release of v2 of my datePicker plugin for jQuery. 
This release is a complete rewrite which makes the date picker considerably 
more powerful and flexible than it previously was. Check out the temporary 
project page:

http://kelvinluck.com/assets/jquery/datePicker/v2/demo/


Beautiful!  Now I don't have to write it!  :-)

  -- Scott



[jQuery] Re: datePicker v2 beta

2007-04-24 Thread Kelvin Luck

On Tue, 24 Apr 2007 14:56:41 +0100, Diego A. [EMAIL PROTECTED] wrote:


 I'd just come across a scenario where events would have made
 datePicker more flexible and was thinking of passing the idea to you.
 http://groups.google.com/group/jquery-en/browse_frm/thread/8993bb17785c6d3b?hl=en

 There's no need. You've done it all!
 As a humble user of the datePicker plugin I would like to thank you
 for all your work, and the greatly improved v2.

 It's a clean 10 out of 10 from me.


Thanks :)


[jQuery] Re: datePicker v2 beta

2007-04-24 Thread Dan G. Switzer, II

Kelvin,

 * When using clickInput:true, you might want to turn off autocomplete
 automatically for the field. When the browser's built-in autocomplete box
 gets triggered, it hovers over the data picker. Plus it looks a little
 weird.

Thanks for the info. My browser hadn't tried to autocomplete any of the
fields so I hadn't seen this issue. You can also position the date picker
so it doesn't necessarily have to overlay the input field (so you get the
advantage of the autocomplete as well).

I just figured if you're applying the click behavior, it's probably because
you're wanting the user to use the date picker as the input. The developer
can manually add the autocomplete=off, but you could also do it
programmatically:

$(input).attr(autocomplete, off);

Just an idea, but maybe it would be better for the developer to turn it off.


-Dan



[jQuery] Re: datePicker v2 beta

2007-04-24 Thread Fabien Meghazi



It's a clean 10 out of 10 from me.


Yeah sure !! This is an excellent plugin !

Maybe adding ESC key mapping in order to close would be a plus.


[jQuery] Re: datePicker v2 beta

2007-04-24 Thread Brandon Aaron


Great work! All the demos work in Safari.

--
Brandon Aaron

On 4/24/07, Kelvin Luck [EMAIL PROTECTED] wrote:


Hi,

I'd like to announce the beta release of v2 of my datePicker plugin for jQuery. 
This release is a complete rewrite which makes the date picker considerably 
more powerful and flexible than it previously was. Check out the temporary 
project page:

http://kelvinluck.com/assets/jquery/datePicker/v2/demo/

Note, this is currently in beta and may be a little rough around the edges but 
I'd love to get some feedback. I've tested in FF2, IE6 and Opera 9 but it would 
be good to know if it works in other browsers (particulaly Safari). Plus any 
other feedback on extra stuff you'd like adding or bugs you discover,

Cheers,

Kelvin :)



[jQuery] Re: datePicker v2 beta

2007-04-24 Thread Charles Capps

Kelvin Luck wrote:
 Hi,
 
 I'd like to announce the beta release of v2 of my datePicker plugin for 
 jQuery. This release is a complete rewrite which makes the date picker 
 considerably more powerful and flexible than it previously was. Check out the 
 temporary project page:
 
 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/
 
 Note, this is currently in beta and may be a little rough around the edges 
 but I'd love to get some feedback. I've tested in FF2, IE6 and Opera 9 but it 
 would be good to know if it works in other browsers (particulaly Safari). 
 Plus any other feedback on extra stuff you'd like adding or bugs you discover,
 
 Cheers,
 
 Kelvin :)

Works flawlessly in Safari 2.0.4 (build 419.3), comparing functionality
and rendering with Firefox 2.

However, there is a possible bug in this demo:
http://kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerIntoSelects.html

It lets you select invalid dates, such as Feb 31 with the dropdowns.
 While the resulting date in the calendar is sane (Mar 3 in the non-leap
year that I tested with), there might be some validation code missing
somewhere.


[jQuery] Re: datePicker v2 beta

2007-04-24 Thread rolfsf


Looks fantastic, Kelvin! I showed it to our lead engineer who has been
assessing date packages and he said he'd drop his current date package in a
heartbeat for this one IF someone had built a server-side version of it
(.NET). So, if anyone takes on that challenge let me know. I long for the
day when I don't have to deal with the rat's nest of code that the  Peter
Blum date control generates.



vitch wrote:
 
 
 Hi,
 
 I'd like to announce the beta release of v2 of my datePicker plugin for
 jQuery. This release is a complete rewrite which makes the date picker
 considerably more powerful and flexible than it previously was. Check out
 the temporary project page:
 
 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/
 
 Note, this is currently in beta and may be a little rough around the edges
 but I'd love to get some feedback. I've tested in FF2, IE6 and Opera 9 but
 it would be good to know if it works in other browsers (particulaly
 Safari). Plus any other feedback on extra stuff you'd like adding or bugs
 you discover,
 
 Cheers,
 
 Kelvin :)
 
 

-- 
View this message in context: 
http://www.nabble.com/datePicker-v2-beta-tf3637608s15494.html#a10165413
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: datePicker v2 beta

2007-04-24 Thread Daemach

Very cool - I can finally replace xin :)  One thing I had to hack into
that code was the ability to trigger an event on the input field
programatically after selecting the date.  Can you provide a
triggerEvent(keyup|focus|change) parameter that will trigger the
specified event in the attached input element when the date picker
changes its value?

On Apr 24, 2:54 am, Kelvin Luck [EMAIL PROTECTED] wrote:
 Hi,

 I'd like to announce the beta release of v2 of my datePicker plugin for 
 jQuery. This release is a complete rewrite which makes the date picker 
 considerably more powerful and flexible than it previously was. Check out the 
 temporary project page:

 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/

 Note, this is currently in beta and may be a little rough around the edges 
 but I'd love to get some feedback. I've tested in FF2, IE6 and Opera 9 but it 
 would be good to know if it works in other browsers (particulaly Safari). 
 Plus any other feedback on extra stuff you'd like adding or bugs you discover,

 Cheers,

 Kelvin :)



[jQuery] Re: datePicker v2 beta

2007-04-24 Thread fabyo . php

Thanks
i desenvolv datagrid +-

http://extjs.com/deploy/ext/docs/

Inline editing - 2 cliques in date visibled datepiker

I you trying to make one grid using its to datepiker

thanks

On 24 abr, 06:54, Kelvin Luck [EMAIL PROTECTED] wrote:
 Hi,

 I'd like to announce the beta release of v2 of my datePicker plugin for 
 jQuery. This release is a complete rewrite which makes the date picker 
 considerably more powerful and flexible than it previously was. Check out the 
 temporary project page:

 http://kelvinluck.com/assets/jquery/datePicker/v2/demo/

 Note, this is currently in beta and may be a little rough around the edges 
 but I'd love to get some feedback. I've tested in FF2, IE6 and Opera 9 but it 
 would be good to know if it works in other browsers (particulaly Safari). 
 Plus any other feedback on extra stuff you'd like adding or bugs you discover,

 Cheers,

 Kelvin :)