DMXzone Calendar Support Product Page
This topic is locked
JavaScript disabled -solved
Shared 04 Mar 2011 16:58:42
1
likes this idea
04 Mar 2011 16:58:42 Nelson Therrien posted:
Unfortunately, like a lot (if not all) of DMXzone extensions, this one doesn't work if JavaScript is turned off (which may happen on mobile devices or other).I understand that the date picker (which is JavaScript, or jQuery to be more precise) doesn't work with JS turned off... but what I don't understand is WHY there's no fall back: the field is set to readonly, so we can't access it without using the datepicker.
A simple solution (that I hope you'll implement in later versions) is simply to remove the readonly="readonly" attribute from the input itself and add it in the JS code. For example, just after the script that creates the datepicker (and just before the closing </script> tag), add that jQuery declaration: $('#name_of_field').attr('readonly', 'readonly');
That way, with JS turned on, the field will be readonly and the user will HAVE TO use the datepicker, but if JS is turned off, they'll still be able to type a date...
Replies
Replied 07 Mar 2011 13:56:32
07 Mar 2011 13:56:32 Miroslav Zografski replied:
Hello Nelson,
Thank you for the request. Will add this to extension wish list.
Regards,
Thank you for the request. Will add this to extension wish list.
Regards,
Replied 07 Mar 2011 18:50:33
07 Mar 2011 18:50:33 Nelson Therrien replied:
Great, has been added to the 1.0.6 version!
Replied 08 Mar 2011 13:04:13
08 Mar 2011 13:04:13 Miroslav Zografski replied:
You are welcome.
Regards,
Regards,