(Datepicker with Appgini Helper Library)
In a mobile browser is there a way to prevent
the virtual keyboard from opening when you click on datepicker?
thanks
datepicker on mobile browser
Re: datepicker on mobile browser
Hi,
this behaviour is not directly related to AppGini nor to AppGini Helper JS Library, but to bootstrap datetimepicker (and other input widgets) on mobile devices in general.
I'm not sure if there is a common solution at all, because it depends on the operating system of your mobile device and the browser being used. I agree with you. From my personal point of view it is sometimes annoying that widgets do pop up - not only in AppGini forms but in almost every form.
Anyway: Some guys have tried to overrule that browser's default behaviour by setting a readonly-attribute like this:
I'm not sure if this will work in every possible environment. I'm not even sure about the jQuery selector. But you could try.
Kind regards,
Jan
this behaviour is not directly related to AppGini nor to AppGini Helper JS Library, but to bootstrap datetimepicker (and other input widgets) on mobile devices in general.
I'm not sure if there is a common solution at all, because it depends on the operating system of your mobile device and the browser being used. I agree with you. From my personal point of view it is sometimes annoying that widgets do pop up - not only in AppGini forms but in almost every form.
Anyway: Some guys have tried to overrule that browser's default behaviour by setting a readonly-attribute like this:
Code: Select all
<script>
jQuery(function() {
jQuery(".datetimepicker > input" ).attr('readonly','readonly');
});
</script>
Kind regards,
Jan
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.10 Revision 1579 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.10 Revision 1579 + all AppGini Helper tools