datepicker on mobile browser

This sub-forum is for discussing all topics related to AppGini Helper JavaScript Library, provided by bizzworxx as a third-party AppGini plugin.
Post Reply
G Belgrado
Veteran Member
Posts: 61
Joined: 2017-03-12 09:24

datepicker on mobile browser

Post by G Belgrado » 2019-12-17 07:29

(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

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: datepicker on mobile browser

Post by jsetzer » 2019-12-17 07:52

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:

Code: Select all

<script>
  jQuery(function() {
    jQuery(".datetimepicker > input" ).attr('readonly','readonly');
  });
</script>
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
Kind regards,
<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 readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

Post Reply