Forums Forums Search & Filter Pro Calendar to display from page load

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Anonymous
    #240719

    Hi there,

    Is it possible for a calendar to display from page load instead of clicking on the input box and then having the calendar appear?

    I can see the calendar sits outside of the other code and there is some clever stuff going on with attaining the top and left positioning which means I can’t just say use display: block !important.

    Thanks for your help and time in advance.

    Trevor
    #240751

    There is not, I am sorry. It is the way that the jQuery DatePickerUI works.

    Anonymous
    #240873

    Okay thanks for the quick reply.

    In theory, is it possible to simulate a click of that field via javascript / jquery so that the calendar appears?

    Thanks very much for your continued help.

    Trevor
    #240879

    I am not sure it is. The question has been asked in the wider community though:

    https://stackoverflow.com/questions/4188435/always-visible-jquery-ui-datepicker

    But, that requires the datepicker to not be associated with a text input.

    My guess is that you might have to ‘destroy’ the datepicker on our text box, and then add it to a visible div, somehow associating it with the text box.

    Anonymous
    #242426

    Hi Trevor,

    Thanks for the guidance.

    This does in fact work to a certain extent.

    The date goes in to the input field but the ajax filter is not triggered.

    If I select an additional filter, this triggers the ajax and pulls in my date.

    Can you advise how I can trigger this manually having selected a date?

    Thanks for your continued help.

    Trevor
    #242546

    Do you have a range (two fields) or single date field?

    Anonymous
    #242590

    Hi Trevor,

    It is a single date field.

    Thanks very much for your continued support.

    Trevor
    #242710

    Ah, so you need an additional method to trigger that. Are you able to send me a live link/URL to your search page so I can take a look?

    I may need to refer this to the plugin developer, Ross, for his input.

Viewing 8 posts - 1 through 8 (of 8 total)