jQuery UI Datepicker flashes in Firefox
I stated that I had the same issue in another reported problem, but his was slightly different than mine. Apologies if I should have replied there.
When using the DatePicker with changemonth, changeyear, and a daterange of more than 20 entries on Firefox 3.6.2, there is a flicker of the page background color. On the page that I am working on, there is a large flicker, and then subsequent clicks there is only a small flicker. On this demo page, there is first a flicker on the input box, and then a larger flicker with subsequent clicks (clicking out and then back in).
The html is the code located on the DatePicker demo page, with the addition of some (ugly) css and ", yearRange: '1980:2012'" .
Here is the HTML:
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Jquery DatePicker</title>
- <style type="text/css">
- body{background-color:#000; color:#fff}
- #container{background-color:#f3f3f3; color:#ccc; height:100px;}
- </style>
- <script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAA50Pro5aanwJ5A-A4F58OjhSexl0fhAY8BQo_P-WomlZ_vjhIShSIqw1GVNyXzpLncOL1xWGZKGN7hQ"></script>
- <script type="text/javascript">
- google.load("jquery", "1.4.2");
- google.load("jqueryui", "1.8.0");
- </script>
- </head>
- <body>
- <meta charset="UTF-8" />
- <script type="text/javascript">
- $(function() {
- $('#datepicker').datepicker({
- changeMonth: true
- , changeYear: true
- , yearRange: '1980:2012'
- });
- });
- </script>
- <div class="demo" id="container">
- <p>Date: <input type="text" id="datepicker"></p>
- </div><!-- End demo -->
- <div class="demo-description">
- <p>Show month and year dropdowns in place of the static month/year header to facilitate navigation through large timeframes. Add the boolean <code>changeMonth</code> and <code>changeYear</code> options.</p>
- </div><!-- End demo-description -->
- </body>
- </html>