Hi All
I'm creating a reservation form and would like the datepicker calendar to display permanently and not only when the the datetime box is selected. Is this possible?
joomla 2.5.6
chronofoms v4
Thanks in advance for any help.
I'm creating a reservation form and would like the datepicker calendar to display permanently and not only when the the datetime box is selected. Is this possible?
joomla 2.5.6
chronofoms v4
Thanks in advance for any help.
Not sure if this will work, but try this code in a load JS action:
window.addEvent('domready', function() {
document.id("DP_FIELD_ID").fireEvent("focus"); //replace the field id of your datepicker
});
Thanks for your response but I had no luck with the suggestion. I can see what you were trying to do though, focus on datepicker field forcing the calender to activate.
Any other suggestions? would love to get this to work.
Thanks again!
Any other suggestions? would love to get this to work.
Thanks again!
Well, the other solution will involve custom coding, try that code in a load JS action:
Not tested though!
Regards,
Max
window.addEvent('domready', function() {
var dp = new DatePicker('inputField', {
timePicker: true,
pickerClass: 'datepicker_jqui'
});
dp.show();
});
Not tested though!
Regards,
Max
I got something. It seemed to have loaded the days of the week (MO-SU) and all the days of the current month but without any structure or styling around it. And when you click on any of the days it simply disappears.
I feel it might be a tricky one to get to work. Thanks for trying though. I'll see what else I can find.
I feel it might be a tricky one to get to work. Thanks for trying though. I'll see what else I can find.
Hi decaf,
Max's code sets the jqui format, that may be causing the formatting problems.
I suspect that this is going to be very tricky without hacking the datepicker core code. It just isn't built to work this way. You might be able to get round it by firing the show() method every time a date is picked so that the calendar is re-displayed.
I think though that I'd look at a PHP calendar if I needed one that was permanently displayed. There are a few around that you could include. I just Googled and found one here that is somewhat similar to the MooTools DatePicker. You'd set it up by using a Custom Code action to load the files and the set-up PHP.
!!Note - this isn't tested or recommended, just an example!!
Bob
Max's code sets the jqui format, that may be causing the formatting problems.
I suspect that this is going to be very tricky without hacking the datepicker core code. It just isn't built to work this way. You might be able to get round it by firing the show() method every time a date is picked so that the calendar is re-displayed.
I think though that I'd look at a PHP calendar if I needed one that was permanently displayed. There are a few around that you could include. I just Googled and found one here that is somewhat similar to the MooTools DatePicker. You'd set it up by using a Custom Code action to load the files and the set-up PHP.
!!Note - this isn't tested or recommended, just an example!!
Bob
This topic is locked and no more replies can be posted.