• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Abandoning AjaxDatePicker for JQuery?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Abandoning AjaxDatePicker for JQuery?


  • Subject: Re: Abandoning AjaxDatePicker for JQuery?
  • From: Klaus Berkling <email@hidden>
  • Date: Wed, 17 May 2017 14:32:07 -0700


On May 17, 2017, at 6:41 AM, Calven Eggert <email@hidden> wrote:

It looks like I’m going to abandon the AjaxDatePicker because I can’t get it to work with the date format my users want for this calendar.

Anyone have experience using WO with JQuery?  Any hints on how to get that setup would be appreciated.



I’m walking out the door but:

In the WOD:

StartDate : WOTextField {
value = event.startDate;
formatter = localDateFormatter;
placeholder = "mm/dd/yyyy";
class = "eventdatepicker";
onblur = "validateDate(this);";
onchange = "$('#Update').click();";
otherTagString = "readonly='true'";
}


And in a js file:


$(document).ready(function() {
console.log("Document ready.")

$(".eventdatepicker").datepicker({
dateFormat: "mm/dd/yy",
changeMonth: true,
changeYear: true,
yearRange: '-0y:+5y',
defaultDate: '0'
});

});

Hope this helps.




Klaus Berkling
www.berkling.us | Photography




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >AjaxDatePicker - can't use b || B (From: Calven Eggert <email@hidden>)
 >Fwd: AjaxDatePicker - can't use b || B (From: Calven Eggert <email@hidden>)
 >Abandoning AjaxDatePicker for JQuery? (From: Calven Eggert <email@hidden>)

  • Prev by Date: Improved exception page
  • Next by Date: Re: data backup question
  • Previous by thread: Re: Abandoning AjaxDatePicker for JQuery?
  • Next by thread: Re: Abandoning AjaxDatePicker for JQuery?
  • Index(es):
    • Date
    • Thread