jquery datepicker ui - lose hover after next previous - jquery-ui

I have a datepicker setup as inline. The idea I have is the selected days and when you hover over a tooltip pops up and shows the title of the events.
The issue I am having is when skipping to the next month, the hover stops working, and when I click back the ones on the default (current) month do not work either.
In the example http://jsfiddle.net/welovedesign/rn67L/ there are events on the 1st and 11th of August and the 11th of September

When the calendar is created, only the dates for the current month are rendered. This is why when you click to another month that therre is no div appearing when you hover over a date with an event.
In the onChangeMonthYear event you'll need to create your div for a date where there is an event and associate it with the appropiate date (as you are doing in the beforeShowDay event).

Related

FSCalendar: prevent automatic scrolling when date from other month is selected

The default behavior of FSCalendar is that if a month is currently being displayed (for example December) and the user taps to select a day from the previous month (November), the calendar will scroll to the previous month.
Is there a way to prevent that automatic scrolling, without disabling selection?

MVC maintaining dates in textboxes using datepicker

In MVC.NET, I have one page with "To Date" and "From Date" textboxes having Bootstrap datepicker attached to them.
On page load, I want today's date selected in datepicker by default and displayed in the textbox as well.
Beside I have Go button on same page which redirects to another page which uses FromDate and ToDate filtered data.
2. On this second page I have back button of type "button" (not submit) which when clicked should return to page one with having FromDate and ToDate selected values in textboxes.
My issue is,I have set "FromDate" and "ToDate" textbox values as today's date in document.ready()
However if I select another date and click on "GO" which redirects to page two but when clicked on back button on page 2, Page one ToDate and FromDate are filled with today's date (due to document.ready())
How do I achieve to show today's date on page load and for rest of the times maintain selected Dates in textboxes when back is clicked.
Page get refreshed when you coming back on first page from second page.
So you have to carry whatever data you have entered on first page when you will hit Controller/Action you have to take this data in TempData and whenever you will come on the fist page you have to set this data again in that that text boxes.
Hope this will help you !!

datepicker calendar disappears when scrolling on mobile/tablet

datepicker calendar disappears when scrolling on mobile/tablet.
When i click the field (on mobile or tablet) Date , the calender appears but when i want to scroll ( you have to touch the screen to scroll) the calendar dissapears. It's very annoying, because that's the last thing i need to get it working.
You can view the date field below:
http://domburghome.com/domburg/index.php/hotel/jan-tooropstraat-2a/
please can somebody help me. thnxx
This is old, but was in the top results when I was searching for solutions, so here's how I fixed it. If you are using the Bootstrap datepicker, check for the mousedown event handler and see if it is also bound to touchstart. Simply remove the touchstart.
$(document), {
'mousedown touchstart': $.proxy(function(e){
change this to
$(document), {
'mousedown': $.proxy(function(e){
Commit is here: https://github.com/uxsolutions/bootstrap-datepicker/pull/1284

DatePicker issue in swift

I am new to Swift. In my app, I have a date picker concept. My issue is when select date button, date picker is appearing fine suppose I select DEC 20 2015. My issue is when scroll date picker wheel very fast and press done button on my date picker tool bar date is not picking . If I open date picker I want to show previously selected date example DEC 20 2015. But it shows some other dates when I scroll faster.
var datePicker:UIdatePicker
func dateselcted()
{
var date:NSDate = NSDate()
datePicker.minimumdate = date
if cell.dateText.characters.count == 0
{
//If user not select any date I am showing current date and working fine
var dateOb:AnyObject =
datePicker.setdate(date ,animated:false)
}
else
{
// Suppose user select DEC 20 2015 storing this date in one object example below and working fine but it is fails when scroll datepicker wheel very fast then it is showing the other date how to show "DEC 20 2015 " when picker wheel scrolls fastly I want to show date what I selected
var dateOb:AnyObject = DEC 20 2015
datePicker.setdate( dateOb as nsdate ,animated:false)
}
}
A date picker only invokes it's action method when the wheels stop spinning. You don't get called continuously as the wheels spin from value to value.
It doesn't look like there is any facility to do what you want (get notified of value changes as the wheels in the date picker spin.)
Furthermore, I don't think the value of a date picker (or a regular UIPickerView) changes until it stops spinning, so it will still have it's old value if you start it spinning and click the button before it stops.
Are you waiting for the scrolling to stop before pressing your done button? That may be your issue.
This answer may have what you are looking for.
The delegate
pickerView:didSelectRow:inComponent:
is not called until the picker stops spinning. If you need to determine the selected row while spinning, you will need to write some logic to guess the state when done is pressed.
There is no way to select a date like you do and still expect the date picker picking your desired date automatically. The device does not know what we think. Normally, users won't press a button until they see that date gets selected. So, I think your concern is trivial.
You can first set datePicker.date to [NSDate date], then set datePicker.date to previously selected date. the OC code for you:
datePicker.date = [NSDate date];
datePicker.date = date;
It works for me, but I don't know why.

Is it possible to unselect the current date in jQuery UI datepicker?

I'm using a datepicker, which is always visible on the page, and tied to a hidden <input>.
Depending on the user interactions on the page, some dates can get dynamically disabled (via beforeShowDay).
The problem is, this allows to disable a date which has been previously selected:
To avoid this, I'd like to unselect the current date prior to refreshing the datepicker.
Is this possible?
EDIT: The datepicker is attached to a div. Clear the selected value like this:
$('selector').datepicker('setDate')
This will unselect whatever day is selected.

Resources