If a strong case for the Clear button is made I don't see why we can't put it back in to be honest. The clear option was deemed unnecessary because one could always use the backspace in an input box but I can see that won't work for a read-only box.
On Fri, Jan 30, 2009 at 7:10 AM, Millman <[email protected]> wrote: > > I have the same issue. One major reason I opted to utilize the > datepicker in my application is so that I didn't have to go through > the mess that goes along with ensure the user inputs a valid date on > the client. I do this by setting readonly="readonly" on the input as > suggested below, however, if I do that of course the user can't edit > the value in the field even by backspacing (and I don't want them > to). I can't rely on some inherent knowledge on the part of the users > to know that ctrl+end clears the value. Therefore, I agree that it > would be a mistake to remove the clear option from the datepicker ui. > > On Jan 16, 2:49 pm, bryce4president <[email protected]> wrote: > > That kind of stinks about theclearfunction being taken out. I > > really like the design visually of the 1.6 version over the 1.5 > > version. I'm working with someone who only wants to allow the user to > > pick a date from the datepicker and not allow them to wipe it out once > > it has been chosen, simply allow them toclearit. He is trying to > > limit them from being able to edit the date manually after it has been > > entered. He wants to take away access to the backspace key that way > > they can't delete part of the date except they can delete the entire > > date. Its really a validation issue. > > > > Any suggestions other than using 1.5? > > Bryce > > > > On Jan 16, 11:21 am, "Richard D. Worth" <[email protected]> wrote: > > > > > The documentation is not yet updated for 1.6, since 1.6 is still in > release > > > candidate. We always maintain documentation for the latest stable > release > > > (currently 1.5.3). Over the next week as we approach 1.6 final, we'll > be > > > updating all of the documentation. As far as what has changed between > 1.5.3 > > > and 1.6rc5, see > > > > >http://jqueryui.pbwiki.com/DatePickerCalendar > > > > > under Section 3, subsection 'Changes from 1.5, 1.6rc2 in refactor' > > > > > - Richard > > > > > On Fri, Jan 16, 2009 at 11:05 AM, bryce4president < > [email protected]>wrote: > > > > > > No, actually I was referring to the example in the Docs... > > > > > >http://docs.jquery.com/UI/Datepicker > > > > > > I'm guessing this one uses 1.5 and not the 1.6rc4? > > > > > > Is this deprecated in 1.6? > > > > > > Is theclearoption no longer available? > > > > > > Bryce > > > > > > On Jan 15, 8:33 pm, "Richard D. Worth" <[email protected]> wrote: > > > > > Do you mean this demo? > > > > > > >http://ui.jquery.com/demos/datepicker#buttonbar > > > > > > > This is accomplished by > > > > > > > $('#datepicker').datepicker({ > > > > > showButtonPanel: true > > > > > > > }); > > > > > > > - Richard > > > > > > > On Thu, Jan 15, 2009 at 5:03 PM, bryce4president < > [email protected] > > > > >wrote: > > > > > > > > I have a really simple date picker example. I've tried this with > > > > > > jquery's latest and with the 1.3 and I'm using UI 1.6. > > > > > > > > I just created the UI code on monday so its fresh. > > > > > > > > The date pickers pop up just fine but there isn't a 'close' or > 'clear' > > > > > > text like in the demo. > > > > > > > > $('#date1').datepicker(); > > > > > > $('#date2').datepicker({beforeShow: function(){ > > > > > > return{ minDate: > > > > > > $('#date1').datepicker("getDate")}; > > > > > > }, > > > > > > changeYear:true, > > > > > > yearRange: '-10:+20', > > > > > > closeAtTop:true, > > > > > > clearText:'Clear' > > > > > > }); > > > > > > > > I realize that the closeAtTop isn't neccessary as it's supposed > to > > > > > > default to 'true' but it didn't work without it so I thought I > would > > > > > > put it in but to no avail. > > > > > > > > Any help would be appreciated. > > > > -- Ca-Phun Ung + http://yelotofu.com + hongkong, zce, jquery, php, css, html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
