Sunday, June 2, 2024
 Popular · Latest · Hot · Upcoming
120
rated 0 times [  121] [ 1]  / answers: 1 / hits: 16561  / 8 Years ago, mon, july 25, 2016, 12:00:00

I realize there were similar questions to this where the problem was the correct font family not being referenced. However, in the version I am using, they don't use an icon for the navigation arrows, they use the html character code for the double-left and double-right arrows.



My html references -



<link href=Content/css/bootstrap.css rel=stylesheet />
<link href=Content/css/datepicker.css rel=stylesheet />
<link href=Content/css/navbar.css rel=stylesheet />
<link href=Content/css/jquery-ui.min.css rel=stylesheet />
<link href=Content/css/jquery-ui.structure.min.css rel=stylesheet />
<link href=Content/css/jquery-ui.theme.min.css rel=stylesheet />

<script type= text/javascript src=Scripts/jquery-2.2.0.min.js></script>
<script type= text/javascript src=Scripts/bootstrap.min.js></script>
<script type= text/javascript src=Scripts/bootstrap-datepicker.js></script>
<script type= text/javascript src=Scripts/moment.min.js></script>
<script type= text/javascript src=Scripts/jquery-ui.min.js></script>


<script type=text/javascript>
$(document).ready(function () {
$(.datepicker).datepicker({
format: 'dd/mm/yyyy',
autoclose: true,
todayBtn: 'linked',
useCurrent: true,
ignoreReadonly: true
})
});
</script>


Here is the relevant coding from the bootstrap-datepicker.js file -



    headTemplate: '<thead>'+
'<tr>'+
'<th colspan=7 class=datepicker-title></th>'+
'</tr>'+
'<tr>'+
'<th class=prev>&laquo;</th>'+
'<th colspan=5 class=datepicker-switch></th>'+
'<th class=next>&raquo;</th>'+
'</tr>'+
'</thead>',
contTemplate: '<tbody><tr><td colspan=7></td></tr></tbody>',
footTemplate: '<tfoot>'+
'<tr>'+
'<th colspan=7 class=today></th>'+
'</tr>'+
'<tr>'+
'<th colspan=7 class=clear></th>'+
'</tr>'+
'</tfoot>'
};


All I am getting is the same grey as the general header background, and then the normal blue hover-over as I would for any particular day on the calendar.



Naughty



I looked for conflicting .prev definitions in the other .css files, but didn't see any specific to tables, datepicker or headers. I have also tried substituting coding using the glyphicons, same result.



My jfiddle -



JFiddle Coding samples


More From » html

 Answers
12

Based on your provided Fiddle, it looks like jQuery UI is the problem. It is overriding elements of your .datepicker class and replacing the text in .prev and .next with image-based icons with relative paths that aren't valid in your build.



Your solutions would be either add the appropriate images (which, based on your response to the comments above you have chosen), or ensure that jQuery UI isn't hooking into your Datepicker.


[#61259] Friday, July 22, 2016, 8 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kamronr

Total Points: 749
Total Questions: 110
Total Answers: 122

Location: Dominica
Member since Sat, Nov 5, 2022
2 Years ago
kamronr questions
Mon, Dec 21, 20, 00:00, 4 Years ago
Fri, Oct 16, 20, 00:00, 4 Years ago
Sat, Oct 3, 20, 00:00, 4 Years ago
Sun, Jul 28, 19, 00:00, 5 Years ago
;